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

javascript - Clear button on addentry page doesn't work -

python - Error: Unresolved reference 'selenium' What is the reason? -

asp.net ajax - Jquery scroll to element just goes to top of page -