From bb7f7b2a2d66f51a7cfeb90eefd7a6ed8e062b40 Mon Sep 17 00:00:00 2001 From: Ward Peeters Date: Fri, 19 Feb 2021 14:14:34 +0100 Subject: [PATCH] fix utils --- packages/gatsby/src/utils/webpack-utils.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/gatsby/src/utils/webpack-utils.ts b/packages/gatsby/src/utils/webpack-utils.ts index 3294ba3cb1f87..3d70b713ff811 100644 --- a/packages/gatsby/src/utils/webpack-utils.ts +++ b/packages/gatsby/src/utils/webpack-utils.ts @@ -584,14 +584,11 @@ export const createWebpackUtils = ( const css: IRuleUtils["css"] = (options = {}): RuleSetRule => { const { browsers, ...restOptions } = options const use = [ + loaders.miniCssExtract(), loaders.css({ ...restOptions, importLoaders: 1 }), loaders.postcss({ browsers }), ] - if (!isSSR) { - use.unshift(loaders.miniCssExtract()) - } - return { use, test: /\.css$/,