Skip to content

Commit

Permalink
feat(hops-build-config): add webpack-stats-plugin to build
Browse files Browse the repository at this point in the history
  • Loading branch information
robin-drexler authored and dmbch committed Nov 22, 2017
1 parent 9cfde51 commit a752635
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/build-config/configs/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ var path = require('path');
var webpack = require('webpack');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var UglifyPlugin = require('uglifyjs-webpack-plugin');

var StatsWriterPlugin = require('webpack-stats-plugin').StatsWriterPlugin;
var WriteManifestPlugin = require('../plugins/write-manifest');
var WriteFilePlugin = require('../plugins/write-file');

Expand All @@ -28,6 +28,7 @@ module.exports = {
},
devtool: 'source-map',
plugins: [
new StatsWriterPlugin({ fields: null }),
new WriteFilePlugin(/^manifest\.js?$/),
new WriteManifestPlugin(),
new webpack.optimize.CommonsChunkPlugin({
Expand Down
3 changes: 2 additions & 1 deletion packages/build-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
"url-loader": "^0.6.2",
"webpack": "^3.6.0",
"webpack-dev-server": "^2.9.4",
"webpack-node-externals": "^1.6.0"
"webpack-node-externals": "^1.6.0",
"webpack-stats-plugin": "^0.1.5"
}
}
4 changes: 4 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7376,6 +7376,10 @@ webpack-sources@^1.0.1:
source-list-map "^2.0.0"
source-map "~0.6.1"

webpack-stats-plugin@^0.1.5:
version "0.1.5"
resolved "https://registry.yarnpkg.com/webpack-stats-plugin/-/webpack-stats-plugin-0.1.5.tgz#29e5f12ebfd53158d31d656a113ac1f7b86179d9"

webpack@^3.6.0:
version "3.8.1"
resolved "https://registry.yarnpkg.com/webpack/-/webpack-3.8.1.tgz#b16968a81100abe61608b0153c9159ef8bb2bd83"
Expand Down

0 comments on commit a752635

Please sign in to comment.