Support minify on build phase

This commit is contained in:
草鞋没号 2021-12-21 09:17:00 +08:00
parent a113d7491f
commit b8285c407c
2 changed files with 2 additions and 4 deletions

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: [

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: [