You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
405 B

const path = require('path');
const CopyWebpackPlugin = require('copy-webpack-plugin');
6 years ago
module.exports = () => ({
entry: {
content: './src/content',
background: './src/background',
},
output: {
path: path.join(__dirname, 'dist'),
filename: '[name].js'
6 years ago
},
devtool: 'sourcemap',
plugins: [
new CopyWebpackPlugin([
{
from: '*',
context: 'src',
ignore: '*.js'
6 years ago
}
])
6 years ago
]
});