Merge pull request #434 from betagouv/bugfixes

Répare l'effet fouc
pull/437/head
Johan Girod 2018-11-27 11:44:57 +01:00 committed by GitHub
commit 7727f669c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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',