webpack-extension-reloader
webpack-extension-reloader copied to clipboard
Setup difficulties / README
Type:
- [ ] bug
- [ ] feature
- [ ] enhancement
- [x] question
Environment:
- OS: Windows 10 / Subsystem Linux
- Browser: Firefox 74
- Library Version: 1.1.4
I'm going to open a PR:
- [ ] yes
- [x] no
Description: I am really stoked to see this package, as developing extensions sure is unnecessary difficult. However, I am having some trouble setting this up following the README. I've added this to my webpack config
plugins: [
new ExtensionReloader({
port: 9090,
reloadPage: true,
entries: {
contentScript: 'content_script',
extensionPage: 'popup'
}
})
, am running webpack with NODE_ENV=development webpack --watch --mode=development
and loading the extension in Firefox by selecting the manifest in the webpack-generated dist-folder.
However, although webpack properly reloads on file change, the extension does not. I still have to press the "reload extension"-button in Firefox about:debugging to get the update.
Am I doing something wrong?
Make sure you look at the sample directory.
I got this working with a background entry point so far, seems to work for me with FF 75.