Angular -CLI sass Source Map

ng serve compiles my application, but when I check the html, the source of the CSS seems to be (style) ... (/ style). Does anyone know how to configure the original sass map via Angular -CLI?

+6
source share
1 answer

When entering an ng service by default, angular cli does not include source files for css files, but you can enable it by entering this command

ng serve -sm -ec 

or

 ng serve --sourcemap --extractCss 

I am using angular Cli -v 1.0.3 and additional information - Angular CLI special cases

Perhaps this will help you.

+4
source

Source: https://habr.com/ru/post/1014330/


All Articles