Skip to content
This repository has been archived by the owner on Mar 22, 2022. It is now read-only.

Inline import CSS bug #3

Closed
Sylwekqaz opened this issue Jul 24, 2017 · 6 comments
Closed

Inline import CSS bug #3

Sylwekqaz opened this issue Jul 24, 2017 · 6 comments

Comments

@Sylwekqaz
Copy link

I have inline import .css file (main-style.css) in my .scss file like
@import "../main-style";
and sass compiles without errors, but watch task throws info about missing file
Could not resolve '../main-style' from file 'C:\patch\to\file\style.scss': file not found, and watch not work on .css files

@sp00m
Copy link
Owner

sp00m commented Jul 25, 2017

Thanks for raising it, I'll investigate.

@sp00m
Copy link
Owner

sp00m commented Jul 26, 2017

@Sylwekqaz The @import statement will be fixed, but you still won't be able to watch for CSS files changes. Why would you like to watch for CSS files changes actually? Because if it's a file within your codebase, then you should probably convert it into a SCSS file, and if it's a file from an external library, then it should not change, am I wrong?

@Sylwekqaz
Copy link
Author

Theoretically: you are right (maybe its will be use full on changing external library version, but its rare use case)
Practically: sometimes bad things happen in projects, and there no time (money) to fix it.

@sp00m
Copy link
Owner

sp00m commented Jul 26, 2017

OK, I'll see what I can do. BTW, in the meantime, you can probably just rename your file from .css to .scss as SCSS is a superset of CSS:

Every valid CSS stylesheet is valid SCSS as well.

Keep you posted soon!

@Sylwekqaz
Copy link
Author

Sylwekqaz commented Jul 26, 2017 via email

@sp00m sp00m closed this as completed in f1781f8 Jul 29, 2017
@sp00m
Copy link
Owner

sp00m commented Jul 29, 2017

This has been fixed in version 1.2.0 (you can now watch for CSS files modifications in addition to SASS ones).

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

No branches or pull requests

2 participants