Install bundle analyzer
This commit is contained in:
+6
-2
@@ -1,6 +1,10 @@
|
||||
const FaviconsWebpackPlugin = require("favicons-webpack-plugin");
|
||||
|
||||
module.exports = {
|
||||
const withBundleAnalyzer = require('@next/bundle-analyzer')({
|
||||
enabled: process.env.ANALYZE === 'true',
|
||||
});
|
||||
|
||||
module.exports = withBundleAnalyzer({
|
||||
target: "server",
|
||||
webpack: (config) => {
|
||||
config.plugins.push(
|
||||
@@ -13,4 +17,4 @@ module.exports = {
|
||||
);
|
||||
return config;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user