🐛 répare l'effet fouc
parent
65d4652592
commit
98674e40cf
|
@ -3,7 +3,7 @@ module.exports = {
|
|||
{
|
||||
test: /\.css$/,
|
||||
use: [
|
||||
'style-loader',
|
||||
{ loader: 'style-loader' },
|
||||
{
|
||||
loader: 'css-loader',
|
||||
options: {
|
||||
|
|
|
@ -39,8 +39,9 @@ const prerenderConfig = () => ({
|
|||
// Replace style-loader with MiniCssExtractPlugin.loader
|
||||
common.module.rules
|
||||
.find(rule => rule.test.test('a.css'))
|
||||
.use.find(loader => (loader || loader.loader) === 'style-loader').loader =
|
||||
.use.find(loader => loader.loader === 'style-loader').loader =
|
||||
MiniCssExtractPlugin.loader
|
||||
|
||||
module.exports = {
|
||||
...common,
|
||||
mode: 'production',
|
||||
|
|
Loading…
Reference in New Issue