According to the docs you may change our css preprocessor on an existing project (see here.
However this will not work at least for Sass as the node-sass dev-dependency is missing on existing projects.
This affects at least version 1.0.0-beta.10. I did not check the webpack-branch.
Installing node-sass as a dev-dependency resolves the issue.
Don't know why has it been downvoted. I was having the same issue, css files were not being generated from .scss. npm install node-sass --save-dev did the trick. How could it be solved when changing an existing project to sass with ng set defaults.styleExt scss?
@caroso1222 How did you fix this exactly?
I am trying to convert an existing project over to sass. CLI is still looking for css files that are not being compiled from my scss files in my components.
I did the NPM install as you mentioned, but what other configuring did you do..if any? Thanks!
angular-cli: 1.0.0-beta.11-webpack.2
node: 6.3.0
os: win32 x64
EDIT: This does work! Thanks.... FYI, for anyone else experiencing this problem....make sure you have every relative URL to each file changed to scss from css. I thought I changed all, but I missed the root 'app.component.css' styleURL.
This is a problem with our README. It's listing instructions for the latest webpack version but that is not the latest in npm. To install the webpack version, see https://github.com/angular/angular-cli#webpack-preview-release-update
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
_This action has been performed automatically by a bot._
Most helpful comment
Don't know why has it been downvoted. I was having the same issue, css files were not being generated from .scss.
npm install node-sass --save-devdid the trick. How could it be solved when changing an existing project to sass withng set defaults.styleExt scss?