mirror of
https://github.com/dwaxweiler/connector-mobilizon
synced 2025-06-05 21:59:25 +02:00
update dev dependencies ava, eslint, eslint-plugin-ava and migrate to ES modules
This commit is contained in:
30
webpack.config.cjs
Normal file
30
webpack.config.cjs
Normal file
@ -0,0 +1,30 @@
|
||||
/* eslint-disable no-undef */
|
||||
const path = require('path')
|
||||
|
||||
const CopyPlugin = require('copy-webpack-plugin')
|
||||
|
||||
const FOLDER_SOURCE = './source'
|
||||
|
||||
module.exports = {
|
||||
entry: FOLDER_SOURCE + '/front/events-loader.js',
|
||||
output: {
|
||||
filename: 'events-loader.js',
|
||||
path: path.resolve(__dirname, 'build/' + '/front'),
|
||||
},
|
||||
plugins: [
|
||||
new CopyPlugin({
|
||||
patterns: [
|
||||
{
|
||||
context: FOLDER_SOURCE,
|
||||
from: '**/*.php',
|
||||
to: '../',
|
||||
},
|
||||
{
|
||||
context: FOLDER_SOURCE,
|
||||
from: '**/*.txt',
|
||||
to: '../',
|
||||
},
|
||||
],
|
||||
}),
|
||||
],
|
||||
}
|
Reference in New Issue
Block a user