Change tar implementation & reduce bundle (583.28kb > 471.58kb)

This commit is contained in:
MattIPv4
2020-06-04 21:26:37 +01:00
parent 1d8af514b0
commit 4b2a476227
5 changed files with 565 additions and 542 deletions

View File

@@ -25,6 +25,7 @@ THE SOFTWARE.
*/
const path = require('path');
const { LimitChunkCountPlugin } = require('webpack').optimize;
const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer');
const DuplicatePackageCheckerPlugin = require('duplicate-package-checker-webpack-plugin');
@@ -32,9 +33,12 @@ module.exports = {
publicPath: './',
outputDir: 'dist',
filenameHashing: false,
//productionSourceMap: false,
productionSourceMap: false,
configureWebpack: {
plugins: [
new LimitChunkCountPlugin({
maxChunks: 1,
}),
process.argv.includes('--analyze') && new BundleAnalyzerPlugin(),
process.argv.includes('--analyze') && new DuplicatePackageCheckerPlugin(),
].filter(x => !!x),