How properly bundle scss/sass files with angular-cli? -


trying migrate gulp angular-cli. in gulp have separate plugin scss bundling -- run task , result index.html...

when installing project using angular-cli, makes use of css default. in order use scss need following:

  • install node-sass using npm install node-sass --save-dev (this used compile scss css)
  • rename css files .scss
  • update references css files use correct url

that's should required in order use scss.

see: https://www.dropbox.com/s/7i8k7578pr1klsl/angular-cli-test.zip?dl=0 running example

note: scss not belong components should go styles.scss (which names styles.css, you've renamed it).


Comments

Popular posts from this blog

ios - Pass NSDictionary from Javascript to Objective-c in JavascriptCore -

python - PyInstaller UAC not working in onefile mode -

wso2is - WSO2 IS 5.0.0 SP1 After restart there is authentication error -