duojs / duo

A next-generation package manager for the front-end
3.42k stars 118 forks source link

Sass imports/dependencies are not being watched #462

Open lucasmotta opened 9 years ago

lucasmotta commented 9 years ago

If I have this:

// main.scss
@import "./nav.scss";
// nav.scss
.nav {
  color: green;
}

And if I run Duo through the CLI with the --watch flag:

duo -w -u duo-sass -r css app.scss

Duo only watchs for changes on the main file and not for the dependencies. So none of the changes on nav.scss will trigger a new rebuild, only when I modify the main.scss. I would expect the same behaviour of JavaScript files, that each require is added to the duo.json manifest. But the Scss import doesn't seem to work this way. :(

kevva commented 9 years ago

@matthewmueller, do we have some method for adding single files to the dependency tree?

casio commented 9 years ago

+1 just stumbled upon the same issue

michaeltroy commented 9 years ago

+1

casio commented 9 years ago

Seeing the same with vanilla css & no plugins btw: local deps dont seem to be watched whatsoever.