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({
|
module.exports = withLess({
|
||||||
trailingSlash: true,
|
trailingSlash: true,
|
||||||
|
reactStrictMode: true,
|
||||||
webpack(config) {
|
webpack(config) {
|
||||||
config.module.rules.push({
|
config.module.rules.push({
|
||||||
test: /\.svg$/i,
|
test: /\.svg$/i,
|
||||||
@ -9,11 +10,6 @@ module.exports = withLess({
|
|||||||
use: ['@svgr/webpack'],
|
use: ['@svgr/webpack'],
|
||||||
});
|
});
|
||||||
|
|
||||||
config.module.rules.push({
|
|
||||||
test: /\.html/,
|
|
||||||
type: 'asset/source',
|
|
||||||
});
|
|
||||||
|
|
||||||
return config;
|
return config;
|
||||||
},
|
},
|
||||||
async rewrites() {
|
async rewrites() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user