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

Preprocessor does not compile when I create .scss file #1882

Closed
adrianoresende opened this issue Mar 22, 2017 · 3 comments
Closed

Preprocessor does not compile when I create .scss file #1882

adrianoresende opened this issue Mar 22, 2017 · 3 comments

Comments

@adrianoresende
Copy link

I installed preprocessor node-sass and this worked perfect but does not compile another new files.
How do I fix this when create a file inside src and compile this file without restart watch-css?

@viankakrisna
Copy link
Contributor

viankakrisna commented Mar 27, 2017

seems like nodemon would be better rather than built-in watcher. Do npm install nodemon --save-dev and add this to your package.json scripts

 "watch-css": "nodemon -e scss -x \"npm run build-css\""

@gaearon
Copy link
Contributor

gaearon commented Mar 28, 2017

@adrianoresende

Quoting the User Guide:

Note that node-sass seems to have an issue recognizing newly created files on some systems so you might need to restart the watcher when you create a file until it’s resolved.

This is a known problem with node-sass and hopefully its maintainers will fix it.

@viankakrisna

Wouldn't this rebuild all files rather than just the changed one?

@gaearon gaearon closed this as completed Mar 28, 2017
@viankakrisna
Copy link
Contributor

@gaearon yeah, it's the simplest one i can remember :p should we update the docs for a better way to do it?

@lock lock bot locked and limited conversation to collaborators Jan 22, 2019
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

3 participants