DEV Community

loading...

Discussion on: Webpack Plugin for a chrome extension build

Collapse
thearchitgarg profile image
Archit Garg

Yes you should add both in your entry point because that would create two bundles in the build directory and you have to specify both in your manifest.json.

 entry: {
    background: "./path/to/my/entry/file.js",
    content_script: "./path/to/my/entry/file.js"
  }
Enter fullscreen mode Exit fullscreen mode