electron-prebuilt-compile icon indicating copy to clipboard operation
electron-prebuilt-compile copied to clipboard

Edit a .less file do not take effect

Open pioz opened this issue 7 years ago • 1 comments

I've prepare this repo to show my problem https://github.com/pioz/electron-prebuilt-compile-issue

You can install and run with

$ git clone https://github.com/pioz/electron-prebuilt-compile-issue.git
$ cd electron-prebuilt-compile-issue
$ npm install
$ npm start

First time you run this app all works fine.
Now close the app (cmd+Q) and edit the file stylesheets/css1.less changing the color from blue to red. Now rerun the app (npm start) and the color of Hello World! is not changed.

If I import all .less files in index.html separately, all is fine.

What did I do wrong? May be a bug?

pioz avatar Jul 19 '17 10:07 pioz

This appears to be a problem with watched files. The cache doesn't properly check dependent files. I'm struggling through this for jade templates, currently.

eliseshaffer avatar Aug 10 '17 03:08 eliseshaffer