nguyenvanduocit / vue-cli-plugin-style-resources-loader

Vue cli plugin to support style-resources-loader.
58 stars 7 forks source link

can it work with HMR? #8

Open jerry000lin opened 5 years ago

jerry000lin commented 5 years ago

it doesn't work for HotModuleReplacement

undefinederror commented 5 years ago

It indeed doesn't trigger reload when an imported file is modified.

Is there any plan to support HMR in the future?

Thank you

undefinederror commented 5 years ago

No answer so this is really for whoever stumbles upon this issue because of a similar problem.

Saving a style file which is in the array of files to load does not trigger HMR, but saving any other file which itself triggers a reload does update the style file too.

nguyenvanduocit commented 5 years ago

I was investigating, that was because the files you added via the plugin were not tracked, because the webpack could not recognize it, I was still learning how to fix it.