0

I'm new to ASP.NET and using WebCompiler to compile my SCSS, so it compiles whenever main.scss is saved using the JSON below that is generated by the WebCompiler. My problem is whenever I save something on the any other .SCSS file it does not compile and I have to go back to main.scss and save that specific file in order to compile my code.

Is there any way to run my JSON compiler automatically whenever I save my project?

Structure

[
  {
    "outputFile": "wwwroot/css/Styles/stylescompiled.scss",
    "inputFile": "wwwroot/css/Styles/main.scss",
    "minify": { "enabled": true },
    "includeInProject": true
  },
  {
    "outputFile": "wwwroot/css/style.css",
    "inputFile": "wwwroot/css/Styles/stylescompiled.scss",
    "options": { "sourceMap": true },
    "includeInProject": true
  },
  {
    "outputFile": "wwwroot/css/style.css",
    "inputFile": "wwwroot/css/Styles/main.scss",
    "options": { "sourceMap": true },
    "minify": { "enabled": true },
    "includeInProject": true
  }
]
PacSmack
  • 13
  • 3

0 Answers0