Skip to content

Commit

Permalink
add stats-webpack-plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
nolanlawson committed Oct 23, 2016
1 parent 59fe927 commit 7f1d159
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
"react-addons-test-utils": "^15.0.1",
"rimraf": "^2.4.3",
"source-map-loader": "^0.1.5",
"stats-webpack-plugin": "^0.4.2",
"webpack": "^1.12.14"
},
"optionalDependencies": {
Expand Down
4 changes: 4 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
var path = require('path');
var webpack = require('webpack');
var ExtractTextPlugin = require("extract-text-webpack-plugin");
var StatsPlugin = require('stats-webpack-plugin');

module.exports = {
module: {
Expand Down Expand Up @@ -63,6 +64,9 @@ module.exports = {
new ExtractTextPlugin("bundle.css", {
allChunks: true
}),
new StatsPlugin('stats.json', {
chunkModules: true
})
],
devtool: 'source-map'
};

0 comments on commit 7f1d159

Please sign in to comment.