Skip to content

Commit

Permalink
fix utils
Browse files Browse the repository at this point in the history
  • Loading branch information
wardpeet committed Feb 19, 2021
1 parent f66fef3 commit bb7f7b2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/gatsby/src/utils/webpack-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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$/,
Expand Down

0 comments on commit bb7f7b2

Please sign in to comment.