Skip to content

Commit

Permalink
change bundle analyzer mode
Browse files Browse the repository at this point in the history
  • Loading branch information
tryoasnafi committed May 9, 2022
1 parent f44aa37 commit e1a3401
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ const HtmlWebpackPlugin = require('html-webpack-plugin');
const CopyWebpackPlugin = require('copy-webpack-plugin');
const WebpackPwaManifest = require('webpack-pwa-manifest');
const { InjectManifest } = require('workbox-webpack-plugin');
const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer');

module.exports = {
entry: path.resolve(__dirname, 'src/scripts/index.js'),
Expand Down Expand Up @@ -84,5 +85,9 @@ module.exports = {
swSrc: path.resolve(__dirname, 'src/scripts/sw.js'),
swDest: 'sw.js',
}),
new BundleAnalyzerPlugin({
analyzerMode: 'static',
openAnalyzer: false,
}),
],
};

1 comment on commit e1a3401

@vercel
Copy link

@vercel vercel bot commented on e1a3401 May 9, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

dicoding-mfwde – ./

dicoding-mfwde-git-main-tryoasnafi.vercel.app
dicoding-mfwde-tryoasnafi.vercel.app
resfi.vercel.app

Please sign in to comment.