Added webpack-bundle-analyzer to production build. Refactored some modules to improve performance. Removed moment-timezone from Utils to drastically reduce module size.

This commit is contained in:
n1474335 2018-12-25 23:58:00 +00:00
parent b29bb6fdd7
commit 43dcd544f2
48 changed files with 207 additions and 102 deletions

View file

@ -2,6 +2,7 @@
const webpack = require("webpack");
const HtmlWebpackPlugin = require("html-webpack-plugin");
const BundleAnalyzerPlugin = require("webpack-bundle-analyzer").BundleAnalyzerPlugin;
const NodeExternals = require("webpack-node-externals");
const Inliner = require("web-resource-inliner");
const glob = require("glob");
@ -209,6 +210,11 @@ module.exports = function (grunt) {
minifyCSS: true
}
}),
new BundleAnalyzerPlugin({
analyzerMode: "static",
reportFilename: "build/prod/BundleAnalyzerReport.html",
openAnalyzer: false
}),
]
},
webInline: {