node-sass-chokidar
node-sass-chokidar copied to clipboard
Watch a directory but only rebuild index.scss
I want to watch my styles directory for changes but only rebuild index.scss to css.
I got a styles structure looking like this...
styles
├── index.css
├── index.scss
├── sections
│ └── header.scss
└── shared
├── colors.scss
└── page.scss
I have the same issue with node-sass-chokidar. In my style directory I'm using a global.sass file that is only a list of @import of other files in the same directory. Modifying one of these imported files does nothing when watching global.sass.
@michaelwayman is impossible to extend the watching to imported files when watching a global/index/main/younameit file with imports?
Can someone please give a small example of this and the version of the package/version of node/os you are using?
I will try to fix it on the chokidar side of node-sass. But give me a project structure or something to work off of
Sure, will try to set up a little example asap.
@michaelwayman I've just created this repo: https://github.com/laurentpayot/node-sass-chokidar-import-example
As you can see only main.sass is watched. Modifying other imported sass files do not trigger a css build.