You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
486 B
JavaScript
28 lines
486 B
JavaScript
const withBundleAnalyzer = require('@next/bundle-analyzer')({
|
|
enabled: process.env.ANALYZE === 'true',
|
|
})
|
|
|
|
module.exports = withBundleAnalyzer({
|
|
eslint: {
|
|
dirs: [
|
|
'hooks',
|
|
'pages',
|
|
'services',
|
|
'types'
|
|
]
|
|
},
|
|
experimental: {
|
|
optimizeCss: true
|
|
},
|
|
productionBrowserSourceMaps: true,
|
|
trailingSlash: true,
|
|
webpack(config) {
|
|
config.module.rules.push({
|
|
test: /\.svg$/,
|
|
use: ["@svgr/webpack"]
|
|
});
|
|
|
|
return config;
|
|
}
|
|
})
|