File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 32
32
" lib"
33
33
],
34
34
"dependencies" : {
35
+ "bundlesize" : " ^0.14.4" ,
35
36
"debounce" : " ^1.0.0" ,
36
37
"deep-equal" : " ^1.0.1" ,
37
38
"eventemitter3" : " ^2.0.2" ,
95
96
"build" : " npm run clean && npm run compile" ,
96
97
"build:umd" : " NODE_ENV=development webpack src/index.js dist/react-gpt.js" ,
97
98
"build:umd:min" : " NODE_ENV=production webpack -p src/index.js dist/react-gpt.min.js" ,
99
+ "bundlesize" : " npm run build:umd:min && bundlesize" ,
98
100
"clean" : " rimraf lib coverage" ,
99
101
"compile" : " babel src --out-dir lib" ,
100
102
"examples" : " webpack-dev-server --config examples/webpack.config.js --content-base examples/apps --inline" ,
109
111
"commitizen" : {
110
112
"path" : " ./node_modules/cz-conventional-changelog"
111
113
}
112
- }
114
+ },
115
+ "bundlesize" : [
116
+ {
117
+ "path" : " ./dist/react-gpt.min.js" ,
118
+ "maxSize" : " 8.5 kB"
119
+ }
120
+ ]
113
121
}
You can’t perform that action at this time.
0 commit comments