flaviait / ng2-jspm-template

A template for a quick development workflow with angular 2 and jspm
MIT License
14 stars 3 forks source link

Improve sass transpilation in dev mode #5

Closed svi3c closed 8 years ago

svi3c commented 8 years ago

At the moment we compile the root sass file on delivery when asking the server for the /main.css resource. We also watch the src/main.scss file and trigger a livereload message for the /main.css resource on change.

A cleaner approach would be to have sass watching the src/main.scss file and then let the livereload server directly watch the output i.e. .tmp/main.css. This way we can also detect changes in sass modules the src/main.scss depends on.