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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

sass container to watch changes in sass files and recompile them #12

Merged
merged 1 commit into from
Oct 27, 2023

Conversation

pavelee
Copy link
Contributor

@pavelee pavelee commented Oct 26, 2023

I prepared container to run in background sass compiler.

It will automatically detect changes in files or new files, then automatically recompile them.

I tested it and we achieved a goal. I was able to run project without bothering about compiling sass files 馃コ

I had to use package node-sass-chokidar because node-sass package do not support detecting new files (added during watch mode), here is a issue ticket -> sass/node-sass#1891.

node-sass-chokidar is older package so that forced me to use node 17, but still with alpine to minimize image size.

If detecting changes in new files is not problem, we could still swap to node-sass, but right now it will require to reload container to watch new added files.

@tolik518
Copy link
Owner

Thank you very much for your valuable contribution!

I'll review it carefully tomorrow and merge it.

@tolik518
Copy link
Owner

I just tested your changes - everything works as expected.
Thanks a lot for another great contribution :)

@tolik518 tolik518 merged commit d80a400 into tolik518:master Oct 27, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Documentation - setup project - add information about building sass files
2 participants