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$/,