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.
23 lines
404 B
23 lines
404 B
const path = require('path');
|
|
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
|
|
|
module.exports = () => ({
|
|
entry: {
|
|
content: './src/content',
|
|
background: './src/background'
|
|
},
|
|
output: {
|
|
path: path.join(__dirname, 'dist'),
|
|
filename: '[name].js'
|
|
},
|
|
devtool: 'sourcemap',
|
|
plugins: [
|
|
new CopyWebpackPlugin([
|
|
{
|
|
from: '*',
|
|
context: 'src',
|
|
ignore: '*.js'
|
|
}
|
|
])
|
|
]
|
|
});
|
|
|