Skip to content

Commit 2530ba2

Browse files
committed
build: check buindle size before shipping
1 parent 799887e commit 2530ba2

File tree

3 files changed

+19
-24
lines changed

3 files changed

+19
-24
lines changed

package-lock.json

Lines changed: 16 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"eslint-plugin-vue": "^6.2.2",
3939
"raw-loader": "^3.1.0",
4040
"rollup": "^2.6.1",
41+
"rollup-plugin-analyzer": "^3.2.3",
4142
"rollup-plugin-babel": "^4.4.0",
4243
"rollup-plugin-commonjs": "^10.1.0",
4344
"rollup-plugin-css-only": "^2.0.0",

rollup.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import commonjs from "rollup-plugin-commonjs";
33
import babel from "rollup-plugin-babel";
44
import vue from "rollup-plugin-vue";
55
import css from "rollup-plugin-css-only";
6+
import analyze from "rollup-plugin-analyzer";
67
import pkg from "./package.json";
78

89
const resolve = (_path) => path.resolve(__dirname, _path);
@@ -36,6 +37,7 @@ export default {
3637
},
3738
}),
3839
css(),
40+
analyze({ summaryOnly: true }),
3941
],
4042
external: [
4143
...Object.keys(pkg.dependencies),

0 commit comments

Comments
 (0)