🐛 répare l'effet fouc

pull/434/head
Johan Girod 2018-11-27 10:55:31 +01:00
parent 65d4652592
commit 98674e40cf
2 changed files with 3 additions and 2 deletions

View File

@ -3,7 +3,7 @@ module.exports = {
{
test: /\.css$/,
use: [
'style-loader',
{ loader: 'style-loader' },
{
loader: 'css-loader',
options: {

View File

@ -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',