Skip to content

Commit 6cbeb9d

Browse files
committed
改为利用webpack --json来生成webpack-bundle-analyzer生成包文件结构的可视化分析报告所需的json文件
1 parent e9d8c94 commit 6cbeb9d

File tree

3 files changed

+25703
-10
lines changed

3 files changed

+25703
-10
lines changed

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"start": "webpack-dev-server --inline --progress --compress --devtool eval --content-base build/ --open",
1010
"profile": "node npm-scripts/before-build.script.js && webpack --colors --profile --display-modules",
1111
"dll": "node npm-scripts/before-build-dll.script.js && webpack --progress --colors --config ./webpack-dll.config.js",
12-
"analyse": "webpack-bundle-analyzer --port 8989 ./build/stats.json",
12+
"analyse": "webpack --json > ./build/stats.json && webpack-bundle-analyzer --port 8989 ./build/stats.json",
1313
"analyze": "npm run analyse"
1414
},
1515
"repository": {
@@ -49,8 +49,7 @@
4949
"rimraf": "^2.5.4",
5050
"style-loader": "^0.13.1",
5151
"url-loader": "^0.5.7",
52-
"webpack": "^1.13.2",
53-
"webpack-bundle-analyzer": "^2.1.1"
52+
"webpack": "^1.13.2"
5453
},
5554
"dependencies": {
5655
"babel-runtime": "^6.11.6",

0 commit comments

Comments
 (0)