This commit is contained in:
MrTimscampi 2020-08-16 20:24:45 +02:00 committed by vitorsemeano
parent 96eccd2ecd
commit 7d9208e951
143 changed files with 1000 additions and 1008 deletions

View file

@ -1,5 +1,6 @@
const path = require('path');
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
const CopyPlugin = require('copy-webpack-plugin');
module.exports = {
context: path.resolve(__dirname, 'src'),
@ -10,7 +11,19 @@ module.exports = {
]
},
plugins: [
(new CleanWebpackPlugin())
new CleanWebpackPlugin(),
new CopyPlugin({
patterns: [
{
from: 'config*.json',
to: '/'
},
{
from: 'themes/',
to: 'themes/'
}
]
})
],
output: {
filename: '[name].bundle.js',