mirror of
https://github.com/owncast/owncast.git
synced 2025-11-02 20:23:29 +08:00
Enable React strict mode
This commit is contained in:
@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user