Created
June 12, 2020 23:35
-
-
Save alejandrocoding/d817466a07e00eecd638d0a5501df622 to your computer and use it in GitHub Desktop.
Chrome Extension Live reload for background and contentScript in dev
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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