1
0
mirror of https://github.com/dwaxweiler/connector-mobilizon synced 2025-06-05 21:59:25 +02:00

Merge branch 'main' into block

This commit is contained in:
Daniel Waxweiler
2021-12-14 15:33:07 +01:00
31 changed files with 3557 additions and 5123 deletions

48
webpack.config.js Normal file
View File

@ -0,0 +1,48 @@
/* eslint-disable no-undef */
const path = require('path')
const CopyPlugin = require('copy-webpack-plugin')
const PACKAGE = require('./package.json')
const FOLDER_SOURCE = './source'
module.exports = {
entry: {
'block-events-loader':
FOLDER_SOURCE + '/' + PACKAGE.name + '/front/block-events-loader.js',
'events-loader':
FOLDER_SOURCE + '/' + PACKAGE.name + '/front/events-loader.js',
},
output: {
filename: '[name].js',
path: path.resolve(__dirname, 'build/' + PACKAGE.name + '/front'),
},
module: {
rules: [
{
test: /\.m?js$/,
exclude: /(node_modules)/,
use: {
loader: 'babel-loader',
},
},
],
},
plugins: [
new CopyPlugin({
patterns: [
{
context: FOLDER_SOURCE + '/' + PACKAGE.name,
from: '**/*.php',
to: '../',
},
{
context: FOLDER_SOURCE + '/' + PACKAGE.name,
from: '**/*.txt',
to: '../',
},
],
}),
],
}