Skip to content

Commit

Permalink
update rollup config
Browse files Browse the repository at this point in the history
  • Loading branch information
royalfig committed Mar 16, 2023
1 parent 710b121 commit 843b34d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
"@rollup/plugin-node-resolve": "^15.0.1",
"@rollup/plugin-terser": "^0.4.0",
"bestzip": "^2.2.1",
"cssnano": "^5.1.15",
"gscan": "^4.36.1",
"postcss-import": "^15.1.0",
"postcss-preset-env": "^8.0.1",
Expand Down
10 changes: 4 additions & 6 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ import postcss from 'rollup-plugin-postcss';
import atImport from 'postcss-import';
// Use the latest CSS features in your Rollup bundle
import postcssPresetEnv from 'postcss-preset-env';
// Minifies the CSS
import cssnano from 'cssnano';

// Development: Enables a livereload server that watches for changes to CSS, JS, and Handlbars files
import { resolve } from "path";
Expand All @@ -29,20 +27,20 @@ export default defineConfig({
dir: "assets/built",
sourcemap: true,
format: 'iife',
plugins: [terser()]
plugins: [terser()]
},
plugins: [
commonjs(),
nodeResolve(),
babel({ babelHelpers: 'bundled' }),
postcss({
extract: true,
sourceMap: true,
plugins: [
atImport(),
postcssPresetEnv({}),
cssnano()
postcssPresetEnv({})
],
extract: true
minimize: true,
}),
process.env.BUILD !== "production" && livereload({
watch: resolve('.'),
Expand Down

0 comments on commit 843b34d

Please sign in to comment.