Problem: Changing partial that a sass file imports, doesn't appear to cause the sass file to generate a css file.
Info: I'm using libsass (have tested both via SassyStudio Visual Studio plugin, and via Grunt with the libsass package grunt-sass. See below for details:
In the sass file file.scss:
@import '_file.scss';
In the partial sass file _file.scss:
body {
background-color: magenta;
}
When I save the partial file, libsass detects the change in _file.scss but I get no updated file.scss and no file.css changes.
If I then save the file.scss once again I see detected changes from libsass, and now my file.css contains:
body {
background-color: magenta;
}
What does it not detect the partial file change and automatically compile those sass files importing that partial? Is this intended, or am I doing something wrong?
Further information: To clarify this a little more, the issue seems to be that saving the partial doesn't cause the non-partial sass files to be recompiled with the updated data from the partials. So if I had a _forms.scss partial file, and wished to update a form input element padding, I would need to save _forms.scss and then save all the files which import _forms.scss to get the change. Which seems a little wrong to me.