Closed Jack-Works closed 3 years ago
To enable HMR you have to run in fake env like what neutrino-webextension did. Real extension env does not support HMR.
It does support. You just have to do some tweaks.
I'd like to PR for HMR. Is that OK?
I'd like to PR for HMR. Is that OK?
That would be great! PRs are welcomed.
@crimx hi plz review and try it!
Great! I'll look into it as soon as possible.
As you can see in the PR, I require some changes in the webpack config. Does that possible to auto-apply them in the plugin? @crimx
https://github.com/crimx/webpack-target-webextension/blob/master/lib/WebExtMainTemplatePlugin.js#L522
I have debugged into the webpack and it seems like this library doesn't return a template that web extension can run on.