mirror of
https://github.com/digitalocean/nginxconfig.io.git
synced 2025-09-24 13:09:24 +08:00
Change tar implementation & reduce bundle (583.28kb > 471.58kb)
This commit is contained in:
@@ -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),
|
||||
|
Reference in New Issue
Block a user