Skip to content

Commit

Permalink
simplify rollup config
Browse files Browse the repository at this point in the history
  • Loading branch information
royalfig committed Mar 16, 2023
1 parent d22cadb commit a0febb3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ export default defineConfig({
output: {
dir: "assets/built",
sourcemap: true,
format: process.env.BUILD === "production" ? 'iife' : 'esm',
plugins: [process.env.BUILD === "production" && terser()]
format: 'iife',
plugins: [terser()]
},
plugins: [
commonjs(),
Expand All @@ -40,7 +40,7 @@ export default defineConfig({
plugins: [
atImport(),
postcssPresetEnv({}),
process.env.BUILD === "production" && cssnano()
cssnano()
],
extract: true
}),
Expand Down

0 comments on commit a0febb3

Please sign in to comment.