Open itayganor opened 4 years ago
If you add clearTemp: false
option to the ThemesGeneratorPlugin
, it works.
@harshithmohan Do you have a working example of this? I tried so many times to make themes-switch
work, but with no luck
@harshithmohan Do you have a working example of this? I tried so many times to make
themes-switch
work, but with no luck
I just saw that using clearTemp: false
makes it not delete the temp folder, so hot reload would work. But I still haven't figured out to make it all work.
I tried to see if building and running it would help but it's generating empty 1 byte css for me. Trying to figure it out since 12 hours but no luck.
May or may not help others: I found that clearTemp: false
needed to be the very first option in the ThemesGeneratorPlugin
for the hot-reloading to work with the themes-switch
plugin.
Friendly reminder to include temp
in your .gitignore
Currently hot-reload has been supported in v1.1.0, now new theme files will be generated when a reload is triggered.
It looks like it tries to open the temp generated files. Every time I hot reload, I get this error message:
It shows the error for every theme that exists, so this follows:
I use latest webpack and Typescript. Did someone notice it too?