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.
21 lines
373 B
21 lines
373 B
6 years ago
|
const path = require('path');
|
||
|
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
||
|
|
||
|
module.exports = (env, argv) => ({
|
||
|
devtool: 'sourcemap',
|
||
|
stats: 'errors-only',
|
||
|
output: {
|
||
|
path: path.resolve(__dirname, 'dist'),
|
||
|
filename: 'content.js',
|
||
|
},
|
||
|
plugins: [
|
||
|
new CopyWebpackPlugin([
|
||
|
{
|
||
|
from: '*',
|
||
|
context: 'src',
|
||
|
ignore: '*.js'
|
||
|
},
|
||
|
])
|
||
|
],
|
||
|
});
|