Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup difficulties / README #99

Open
2 of 6 tasks
FluidSense opened this issue Apr 8, 2020 · 1 comment
Open
2 of 6 tasks

Setup difficulties / README #99

FluidSense opened this issue Apr 8, 2020 · 1 comment

Comments

@FluidSense
Copy link

Type:

  • bug
  • feature
  • enhancement
  • question

Environment:

  • OS: Windows 10 / Subsystem Linux
  • Browser: Firefox 74
  • Library Version: 1.1.4

I'm going to open a PR:

  • yes
  • 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?

@m11m
Copy link

m11m commented May 3, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants