Skip to content

Commit

Permalink
Merge pull request #6 from earlymeme/fix-react-scripts-2.1.2-error
Browse files Browse the repository at this point in the history
fix: adapt to [email protected]
  • Loading branch information
ndbroadbent authored Dec 27, 2018
2 parents a18393e + 09cb2a6 commit ef1f813
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/craco-less.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const overrideWebpackConfig = ({ context, webpackConfig, pluginOptions }) => {
use: []
};

const loaders = context.env === "production" ? sassRule.loader : sassRule.use;
const loaders = sassRule.use || sassRule.loader;

loaders.forEach(ruleOrLoader => {
let rule;
Expand Down

0 comments on commit ef1f813

Please sign in to comment.