Skip to content

Commit 3902262

Browse files
authored
Merge pull request #1 from rfreling/patch-1
Syntax update for including `style-loader`
2 parents d5c0fe2 + 95bc1aa commit 3902262

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/react-scripts/config/webpack.config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,9 @@ module.exports = function (webpackEnv) {
9191
// common function to get style loaders
9292
const getStyleLoaders = (cssOptions, preProcessor) => {
9393
const loaders = [
94-
isEnvDevelopment && require.resolve('style-loader'),
94+
isEnvDevelopment && {
95+
loader: require.resolve('style-loader'),
96+
},
9597
isEnvProduction && {
9698
loader: MiniCssExtractPlugin.loader,
9799
// css is located in `static/css`, use '../../' to locate index.html folder

0 commit comments

Comments
 (0)