This commit is contained in:
Tobias Miesel
2018-07-05 12:20:24 +02:00
committed by Manuel Bouza
parent cbf79b960c
commit 8ff93423af
9 changed files with 4399 additions and 7 deletions

22
webpack.config.js Normal file
View File

@@ -0,0 +1,22 @@
const path = require('path')
const ChromeExtensionReloader = require('webpack-chrome-extension-reloader')
module.exports = {
entry: {
content: './src/js/index.js',
},
output: {
path: path.resolve(__dirname),
filename: 'bundle.js',
},
plugins: [
new ChromeExtensionReloader({
port: 9090, // Which port use to create the server
reloadPage: true, // Force the reload of the page also
entries: { //The entries used for the content/background scripts
contentScript: 'content', //Use the entry names, not the file name or the path
background: 'background'
}
})
]
}