electron-compile
electron-compile copied to clipboard
Documentation: How to determine if a file needs to be re-compiled?
A quick note in the README about how electron-compile decides whether or not a file needs to be recompiled would be useful.
Whether the file should be compiled is based on:
- The compiler settings (i.e. if you change Babel options, we recompile your files)
- The content of the file
Where this breaks down is, file formats like SCSS that allow imports - we don't invalidate the parent file when the child changes
@paulcbetts Is there any way to force recompile of parent SCSS file on an app reload, or make it work with autoreload?
I have a style directory set up like below with imports into the main root app.scss file. Seems changes in a child SCSS file are not reflected in the GUI on reload because of your explanation above: we don't invalidate the parent file when the child changes.

Otherwise I suppose I could always just run a sass-watch separately but would love to get this all working through electron-compile.
Btw, this is an awesome project!