support minify on build phase

This commit is contained in:
草鞋没号 committed 2021-12-21 09:00:59 +08:00
1 parent 9456f5c270
commit 1c0d0a50b7
2 files changed
+2 -4

No files matched your search

+1 -2
View File
@@ -11,8 +11,7 @@ export default defineConfig({
entry: 'index.ts',
formats: ['cjs'],
},
sourcemap: false,
minify: false,
minify: process.env.NODE_ENV === 'production',
emptyOutDir: true,
rollupOptions: {
external: [
+1 -2
View File
@@ -11,8 +11,7 @@ export default defineConfig({
entry: 'index.ts',
formats: ['cjs'],
},
sourcemap: false,
minify: false,
minify: process.env.NODE_ENV === 'production',
emptyOutDir: true,
rollupOptions: {
external: [