awesome-webextension / webpack-target-webextension

WebExtension Target for Webpack 5. Supports code-splitting and HMR.
MIT License
46 stars 5 forks source link

[Webpack 5] Does not work with Webpack 5 publicPath #9

Closed Jack-Works closed 3 years ago

Jack-Works commented 3 years ago

Workaround: Set output.publicPath to /

Jack-Works commented 3 years ago

Webpack 5 native worker support does not work.

Workaround: Add this line before new Worker(new URL(..., import.meta.url))

__webpack_public_path__ = browser.runtime.getURL('/')
Jack-Works commented 3 years ago

got some runtime chunk loading error. I'll fix this later but I still got no idea about how webpack 5 handle public path