Skip to content

Commit

Permalink
BundleAnalyzerPlugin
Browse files Browse the repository at this point in the history
  • Loading branch information
QProgS committed Jul 9, 2017
1 parent 51dbd77 commit 5a5d027
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Binary file added BundleAnalyzerPlugin.PNG
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
"underscore": "^1.8.3",
"url-loader": "0.5.7",
"webpack": "3.0.0",
"webpack-bundle-analyzer": "^2.8.2",
"webpack-cleanup-plugin": "^0.5.1",
"webpack-dashboard": "^0.4.0",
"webpack-dev-server": "^2.4.5"
Expand Down
2 changes: 2 additions & 0 deletions webpack.production.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ var HtmlWebpackPlugin = require('html-webpack-plugin');
var WebpackCleanupPlugin = require('webpack-cleanup-plugin');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var OptimizeCssAssetsPlugin = require('optimize-css-assets-webpack-plugin');
var BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;

loaders.push({
test: /\.scss$/,
Expand Down Expand Up @@ -43,6 +44,7 @@ let config = {
filename: 'style.css',
allChunks: true
}),
//new BundleAnalyzerPlugin(),
new OptimizeCssAssetsPlugin(),
new HtmlWebpackPlugin({
favicon: './src/images/favicon.ico',
Expand Down

0 comments on commit 5a5d027

Please sign in to comment.