Closed franciscolourenco closed 5 years ago
Example usage:
pluginOptions: { browserExtension: { extensionReloaderOptions: { reloadPage: false, entries: { background: 'background', contentScript: ['content_scripts/content'], }, }, }, }
The same can be achieved with chainWebpack, but it requires conditionals and looks more complicated. Example:
chainWebpack
if (process.env.NODE_ENV !== 'production') { config.plugin('extension-reloader').tap(([options]) => { return [ { ...options, reloadPage: false, entries: { background: 'background', contentScript: ['content_scripts/content'], }, }, ] }) }
It seems like it should be the responsibility of this plugin to provide a way to customize the options.
bump
Sorry for the wait on this one, I got married a couple of weeks ago and couldn't grab enough time to give this the necessary attention
Congratulations @adambullmer 🎉
Example usage:
The same can be achieved with
chainWebpack
, but it requires conditionals and looks more complicated. Example:It seems like it should be the responsibility of this plugin to provide a way to customize the options.