Webpack plugin to enable reloading while developing Chrome extensions.
npm install wcer --save-dev
// or
yarn add wcer --dev
Add wcer to the plugins section of your webpack configuration file.
const path = require('path');
const ChromeReloadPlugin = require('wcer');
module.exports = {
//...
plugins: [
new ChromeReloadPlugin({
port: 9090, //optional, default: 9090
manifest: path.join(__dirname, '..', 'src', 'manifest.js')
})
]
//...
}