Changes not occur unless main.scss is saved | SASS

Viewed 683

I have main.scss file that imports all other scss files. But whenever I make changes in "pages/band" file, no changes occur unless I save main.scss everytime. I'm running live-server

EDIT: Here is package.json file

{
  "name": "bootstrap_startup",
  "version": "1.0.0",
  "description": "Bootstrap startup",
  "main": "index.js",
  "scripts": {
    "compile:sass": "node-sass sass/main.scss css/style.css -w"
  },
  "author": "Zain",
  "license": "ISC",
  "devDependencies": {
    "node-sass": "^4.11.0"
  }
}

main.scss

@import "abstract/mixins";
@import "abstract/variables";

@import "base/animations";
@import "base/base";
@import "base/typography";
@import "base/utilities";

@import "components/cards";
@import "components/footer";

@import "pages/band";
@import "pages/home";
2 Answers

I found that after you adding a new @include in main.scss file you must restart once sass compiler script so that it fetch the changes to it. It works for me.

Related