Skip to content

Instantly share code, notes, and snippets.

@alejandrocoding
Created June 12, 2020 23:35
Show Gist options
  • Save alejandrocoding/d817466a07e00eecd638d0a5501df622 to your computer and use it in GitHub Desktop.
Save alejandrocoding/d817466a07e00eecd638d0a5501df622 to your computer and use it in GitHub Desktop.
Chrome Extension Live reload for background and contentScript in dev
const ExtensionReloader = require('webpack-extension-reloader')
const config = require('./custom-webpack.config');
module.exports = {...config,
mode: 'development',
plugins: [new ExtensionReloader({
reloadPage: true,
entries: {
background: 'background',
contentScript: 'contentScript'
}
})]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment