We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b729661 commit f6a2274Copy full SHA for f6a2274
1 file changed
rollup.config.js
@@ -3,6 +3,7 @@ import commonjs from "@rollup/plugin-commonjs";
3
import babel from "@rollup/plugin-babel";
4
import del from "rollup-plugin-delete";
5
import { terser } from "rollup-plugin-terser";
6
+import purgecss from 'rollup-plugin-purgecss';
7
8
const plugins = [
9
del({
@@ -16,7 +17,10 @@ const plugins = [
16
17
}),
18
resolve({ extensions: [".js", ".jsx"] }),
19
commonjs(),
- process.env.production && terser()
20
+ process.env.production && terser(),
21
+ process.env.production && purgecss({
22
+ content: ["public/index.html"]
23
+ })
24
];
25
26
export default {
0 commit comments