-
Notifications
You must be signed in to change notification settings - Fork 96
REACT_APP_SASS does not generate CSS file #10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This should be only happening in development mode, in production mode when using |
I’ve added a reduced testcase to https://github.com/jbach/custom-react-scripts-sass. Try running When I manually change the sass-loader in 'SASS': {
toArray: 'loaders',
get: function () {
return {
test: /\.scss$/,
loader: ExtractTextPlugin.extract('style', "css!postcss!sass")
}
}
} a separate CSS file is built. |
Just released 0.0.14 with a better fix for this. Now each customizer has a getDev and getProd functions. Should be ok now. |
Thank you for the fix, but can you confirm 0.0.14 is installable via npm? Installation via
|
Yes. I got the same error with Node v6.6.0. I also see other people [have this issue]with different npm packages (webpack/webpack#2463) but I have no idea why. Installing the scripts with Node v.6.2.0 worked completely fine for me. Please try it and let me know. |
I’ll close this issue. The nonrelated install bug is described in #13 |
When
REACT_APP_SASS=true
, the CSS is embedded in the JS file rather than output as a separate CSS file. I guessExtractTextPlugin.extract
is missing for the Sass loader?The text was updated successfully, but these errors were encountered: