Skip to content

Commit

Permalink
fix(webpack.config.js): Fix test for one CSS chunk to cover more flav…
Browse files Browse the repository at this point in the history
…ors of CSS (#11927)
  • Loading branch information
KyleAMathews authored and pieh committed Feb 20, 2019
1 parent dde83d5 commit c2c66b9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/gatsby/src/utils/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,8 @@ module.exports = async (
// See https://github.com/gatsbyjs/gatsby/issues/11072
styles: {
name: `styles`,
test: /\.css$/,
// This should cover all our types of CSS.
test: /\.(css|scss|sass|less|styl)$/,
chunks: `all`,
enforce: true,
},
Expand Down

0 comments on commit c2c66b9

Please sign in to comment.