Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes to a referenced file don't trigger main file to recompile #111

Closed
real-didi opened this issue Aug 4, 2021 · 1 comment
Closed

Comments

@real-didi
Copy link

I have a problem getting main file recompiled after making changes to referenced styles.

Steps to reproduce:

Create style.scss
@use 'style.included';

And style.included.scss
body { background-color: blue; }

Start 'Watch Sass' and make changes to style.included.scss ,
for example change it to body { background-color: black; } and save it.

Result: only style.included.scss gets recompiled.
Screenshot 2021-08-04 202617

@glenn2223
Copy link
Owner

Hey @real-didi, glad you're trying the extension.

SASS partials are traditionally started with an underscore (_). When Ritwick originally created this project he had this heavily influence the code. So when a file starts with an underscore it is not compiled, but rather compiles all possible files - those without an underscore. And, on the reverse of that, when a file without underscore is saved it should just be that files that is compiled.

Another point about this extension is that it doesn't parse the SASS stylesheet but rather just passes it to the compiler - this means that the extension doesn't actually know which files are linked to which.

I hope this makes sense and explains why it isn't working as expected


Going to close for two reasons

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants