sass container to watch changes in sass files and recompile them #12
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.