Skip to content

Commit

Permalink
chore: 불필요한 설정 및 라이브러리 정리
Browse files Browse the repository at this point in the history
  • Loading branch information
bh2980 committed May 19, 2024
1 parent 5b07bb8 commit 446da5e
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 604 deletions.
7 changes: 1 addition & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@
"import": "./dist/index.es.js",
"require": "./dist/index.umd.js",
"types": "./dist/index.d.ts"
},
"./dist/style.css": "./dist/style.css",
"./package.json": "./package.json",
"./dist/*": "./dist/*"
}
},
"files": [
"/dist"
Expand Down Expand Up @@ -73,8 +70,6 @@
"jest-environment-jsdom": "^29.7.0",
"postcss": "^8.4.38",
"prettier": "^3.2.5",
"rollup-plugin-ignore": "^1.0.10",
"rollup-plugin-postcss": "^4.0.2",
"storybook": "^8.1.1",
"storybook-addon-pseudo-states": "^3.1.1",
"tailwindcss": "^3.4.3",
Expand Down
11 changes: 3 additions & 8 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import terser from "@rollup/plugin-terser";
import react from "@vitejs/plugin-react";
import path from "path";
import postcss from "rollup-plugin-postcss";
import { defineConfig } from "vite";
import dts from "vite-plugin-dts";
import tsconfigPaths from "vite-tsconfig-paths";
Expand All @@ -16,19 +16,14 @@ export default defineConfig({
},
rollupOptions: {
external: ["react", "react-dom"],
input: "./index.ts",
output: {
globals: {
react: "React",
"react-dom": "ReactDOM",
},
},
plugins: [
postcss({
inject: true, // CSS를 'style' 태그로 주입하거나 true를 설정하면 JS 번들에 직접 포함
minimize: true, // CSS 압축
extensions: [".css"], // 처리할 파일 확장자
}),
],
plugins: [terser()],
},
sourcemap: true,
emptyOutDir: true,
Expand Down
Loading

0 comments on commit 446da5e

Please sign in to comment.