Removes bundle analyzer

This commit is contained in:
Zeno Rocha 2018-11-11 09:10:37 -08:00
parent 4d4c25c505
commit e0f82241d0
3 changed files with 133 additions and 407 deletions

528
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -34,13 +34,11 @@
"sinon": "^1.17.2",
"uglifyjs-webpack-plugin": "^1.2.4",
"webpack": "^4.5.0",
"webpack-bundle-analyzer": "^2.11.1",
"webpack-cli": "^3.1.2"
},
"scripts": {
"build": "npm run build-debug && npm run build-min",
"build-debug": "webpack --mode=development",
"build-analyze": "cross-env ANALYZE_BUILD=true npm run prepublish",
"build-min": "cross-env NODE_ENV=production webpack --mode=production",
"build-watch": "webpack --watch",
"test": "karma start --single-run",

View File

@ -2,7 +2,6 @@ const pkg = require('./package.json');
const path = require('path');
const webpack = require('webpack');
const UglifyJSPlugin = require('uglifyjs-webpack-plugin');
const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer');
const production = process.env.NODE_ENV === 'production' || false;
@ -39,12 +38,5 @@ module.exports = {
})
]
},
plugins: production ? [
new webpack.BannerPlugin({ banner }),
new BundleAnalyzerPlugin({
analyzerMode: process.env.ANALYZE_BUILD ? 'server' : 'disabled'
})
] : [
new webpack.BannerPlugin({ banner })
]
plugins: [new webpack.BannerPlugin({ banner })]
};