Add webpack-bundle-analyzer

pull/340/head
Denis Demchenko 5 years ago
parent f5c939518e
commit ac1ec4a6c3

9764
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -48,6 +48,7 @@
"sinon": "^7.3.2",
"testem": "^2.17.0",
"webpack": "^4.35.3",
"webpack-bundle-analyzer": "^3.3.2",
"webpack-cli": "^3.3.6",
"yamljs": "^0.3.0"
},
@ -65,6 +66,8 @@
"scripts": {
"build": "webpack --config webpack.config.js",
"generate-and-deploy-docs": "npm run generate-docs && gh-pages --dist docs --dest docs",
"watch": "webpack --watch --config webpack.config.js",
"deploy": "jsdoc -c jsdoc.json && gh-pages --dist docs --dest docs",
"prepublishOnly": "npm run build",
"lint": "eslint ./src",
"testem": "testem",

@ -1,6 +1,10 @@
const path = require('path');
const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer');
module.exports = {
plugins: [
new BundleAnalyzerPlugin(),
],
mode: 'production', // "production" | "development" | "none"
// Chosen mode tells webpack to use its built-in optimizations accordingly.
entry: {

Loading…
Cancel
Save