0

When I use scss as default style in my angular project. Without compiling the .scss file to .css, style is applied.therefore I want to know that the scss is directly applicable in project without compiling to css.I use vs code editor .

user8872666
  • 29
  • 2
  • 5
  • 3
    Some classes may be useable if they are valid CSS, but any variable expansion or nesting must be performed either by the compilation or with a javascript library. The browser will ignore anything that isn't parseable. – J.D. Pace Apr 04 '18 at 03:14

1 Answers1

3

Browsers don't natively support scss.

But Angular CLI projects have scripts that compile your scss into css and bundle these files using Webpack. You will get the scripts by default with Angular CLI.

Solution

You only need to run ng serve in Angular CLI to have Webpack compile, bundle, and serve your files.

Travis J
  • 81,153
  • 41
  • 202
  • 273
cobolstinks
  • 6,801
  • 16
  • 68
  • 97