Skip to content

Commit 1d9c552

Browse files
committed
use webpack-visualizer-plugin
1 parent cc7b3f7 commit 1d9c552

File tree

3 files changed

+281
-175
lines changed

3 files changed

+281
-175
lines changed

package.json

+4-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"dist": "npm run mac && npm run linux && npm run win",
1515
"mac": "build --mac",
1616
"linux": "build --linux deb tar.xz",
17-
"win": "build --win --ia32"
17+
"win": "build --win --ia32",
18+
"stats": "webpack-bundle-analyzer stats.json"
1819
},
1920
"build": {
2021
"appId": "com.egoistian.eme",
@@ -74,8 +75,8 @@
7475
"vue-style-loader": "^1.0.0",
7576
"vue-template-compiler": "^2.1.8",
7677
"webpack": "^1.14.0",
77-
"webpack-hot-middleware": "^2.12.1",
78-
"webpack-visualizer-plugin": "^0.1.5"
78+
"webpack-bundle-analyzer": "^2.2.1",
79+
"webpack-hot-middleware": "^2.12.1"
7980
},
8081
"dependencies": {
8182
"babel-runtime": "^6.11.6",

scripts/webpack.config.prod.js

-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
'use strict'
22
const webpack = require('webpack')
3-
const Visualizer = require('webpack-visualizer-plugin')
43
const config = require('./webpack.config')
54

65
config.plugins = config.plugins.concat([
@@ -14,9 +13,6 @@ config.plugins = config.plugins.concat([
1413
new webpack.DefinePlugin({
1514
'__DEV__': false,
1615
'process.env.NODE_ENV': JSON.stringify('production')
17-
}),
18-
new Visualizer({
19-
filename: '../../stats.html'
2016
})
2117
])
2218

0 commit comments

Comments
 (0)