Skip to content

Commit

Permalink
use webpack-visualizer-plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
egoist committed Jan 27, 2017
1 parent cc7b3f7 commit 1d9c552
Show file tree
Hide file tree
Showing 3 changed files with 281 additions and 175 deletions.
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"dist": "npm run mac && npm run linux && npm run win",
"mac": "build --mac",
"linux": "build --linux deb tar.xz",
"win": "build --win --ia32"
"win": "build --win --ia32",
"stats": "webpack-bundle-analyzer stats.json"
},
"build": {
"appId": "com.egoistian.eme",
Expand Down Expand Up @@ -74,8 +75,8 @@
"vue-style-loader": "^1.0.0",
"vue-template-compiler": "^2.1.8",
"webpack": "^1.14.0",
"webpack-hot-middleware": "^2.12.1",
"webpack-visualizer-plugin": "^0.1.5"
"webpack-bundle-analyzer": "^2.2.1",
"webpack-hot-middleware": "^2.12.1"
},
"dependencies": {
"babel-runtime": "^6.11.6",
Expand Down
4 changes: 0 additions & 4 deletions scripts/webpack.config.prod.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
'use strict'
const webpack = require('webpack')
const Visualizer = require('webpack-visualizer-plugin')
const config = require('./webpack.config')

config.plugins = config.plugins.concat([
Expand All @@ -14,9 +13,6 @@ config.plugins = config.plugins.concat([
new webpack.DefinePlugin({
'__DEV__': false,
'process.env.NODE_ENV': JSON.stringify('production')
}),
new Visualizer({
filename: '../../stats.html'
})
])

Expand Down

0 comments on commit 1d9c552

Please sign in to comment.