2021-12-09 19:46:19 +01:00
|
|
|
/* eslint-disable no-undef */
|
|
|
|
const path = require('path')
|
2021-11-09 22:10:35 +01:00
|
|
|
|
2021-12-09 19:46:19 +01:00
|
|
|
const CopyPlugin = require('copy-webpack-plugin')
|
2021-11-09 22:10:35 +01:00
|
|
|
|
2021-12-09 19:46:19 +01:00
|
|
|
const FOLDER_SOURCE = './source'
|
2021-11-09 22:10:35 +01:00
|
|
|
|
|
|
|
module.exports = {
|
2021-12-14 17:51:13 +01:00
|
|
|
entry: FOLDER_SOURCE + '/front/events-loader.js',
|
2021-11-09 22:10:35 +01:00
|
|
|
output: {
|
|
|
|
filename: 'events-loader.js',
|
2021-12-14 17:51:13 +01:00
|
|
|
path: path.resolve(__dirname, 'build/' + '/front'),
|
2021-11-09 22:10:35 +01:00
|
|
|
},
|
|
|
|
plugins: [
|
|
|
|
new CopyPlugin({
|
|
|
|
patterns: [
|
|
|
|
{
|
2021-12-14 17:51:13 +01:00
|
|
|
context: FOLDER_SOURCE,
|
2021-11-09 22:10:35 +01:00
|
|
|
from: '**/*.php',
|
|
|
|
to: '../',
|
|
|
|
},
|
|
|
|
{
|
2021-12-14 17:51:13 +01:00
|
|
|
context: FOLDER_SOURCE,
|
2021-11-09 22:10:35 +01:00
|
|
|
from: '**/*.txt',
|
|
|
|
to: '../',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}),
|
|
|
|
],
|
2021-12-09 19:46:19 +01:00
|
|
|
}
|