1
0
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:
Daniel Waxweiler
2022-01-09 12:11:24 +01:00
parent fa91324f18
commit 647629b5a9
16 changed files with 988 additions and 2513 deletions

30
webpack.config.cjs Normal file
View 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: '../',
},
],
}),
],
}