21 lines
493 B
JavaScript
21 lines
493 B
JavaScript
const FaviconsWebpackPlugin = require("favicons-webpack-plugin");
|
|
|
|
const withBundleAnalyzer = require('@next/bundle-analyzer')({
|
|
enabled: process.env.ANALYZE === 'true',
|
|
});
|
|
|
|
module.exports = withBundleAnalyzer({
|
|
target: "server",
|
|
webpack: (config) => {
|
|
config.plugins.push(
|
|
new FaviconsWebpackPlugin({
|
|
logo: "./public/favicon.png",
|
|
outputPath: "../public/favicons",
|
|
prefix: "/favicons",
|
|
inject: false
|
|
})
|
|
);
|
|
return config;
|
|
}
|
|
});
|