Skip to content

Commit

Permalink
Merge pull request #185 from flixlix/chore-minify-js-build
Browse files Browse the repository at this point in the history
chore: minify js build
  • Loading branch information
flixlix committed May 20, 2023
2 parents 5bc03e2 + 33c757b commit dd5c0ad
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-wc": "^1.3.2",
"rollup": "^2.70.2",
"rollup-plugin-minify-html-literals": "^1.2.6",
"rollup-plugin-serve": "^1.1.0",
"rollup-plugin-terser": "^7.0.2",
"semantic-release": "^19.0.2",
Expand Down
7 changes: 6 additions & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { nodeResolve } from "@rollup/plugin-node-resolve";
import serve from "rollup-plugin-serve";
import { terser } from "rollup-plugin-terser";
import typescript from "@rollup/plugin-typescript";
import minifyHTML from 'rollup-plugin-minify-html-literals';

const dev = process.env.ROLLUP_WATCH;

Expand All @@ -29,11 +30,15 @@ export default [
},
],
plugins: [
minifyHTML(),
terser({ output: { comments: false } }),
typescript({
declaration: false,
}),
nodeResolve(),
json(),
json({
compact: true,
}),
commonjs(),
babel({
exclude: "node_modules/**",
Expand Down

0 comments on commit dd5c0ad

Please sign in to comment.