Enable React strict mode
This commit is contained in:
parent
092db0df8d
commit
ec57feac94
@ -2,6 +2,7 @@ const withLess = require('next-with-less');
|
||||
|
||||
module.exports = withLess({
|
||||
trailingSlash: true,
|
||||
reactStrictMode: true,
|
||||
webpack(config) {
|
||||
config.module.rules.push({
|
||||
test: /\.svg$/i,
|
||||
@ -9,11 +10,6 @@ module.exports = withLess({
|
||||
use: ['@svgr/webpack'],
|
||||
});
|
||||
|
||||
config.module.rules.push({
|
||||
test: /\.html/,
|
||||
type: 'asset/source',
|
||||
});
|
||||
|
||||
return config;
|
||||
},
|
||||
async rewrites() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user