remove unneeded folder

This commit is contained in:
Daniel Waxweiler 2021-12-14 17:51:13 +01:00
parent d32320a540
commit d5419448e1
29 changed files with 8 additions and 10 deletions

View File

@ -10,10 +10,10 @@ const FOLDER_BUILD = './build'
function injectMetadata() { function injectMetadata() {
return src( return src(
[ [
FOLDER_BUILD + '/' + PACKAGE.name + '/front/events-loader.js', FOLDER_BUILD + '/front/events-loader.js',
FOLDER_BUILD + '/' + PACKAGE.name + '/' + PACKAGE.name + '.php', FOLDER_BUILD + '/' + PACKAGE.name + '.php',
FOLDER_BUILD + '/' + PACKAGE.name + '/includes/constants.php', FOLDER_BUILD + '/includes/constants.php',
FOLDER_BUILD + '/' + PACKAGE.name + '/readme.txt', FOLDER_BUILD + '/readme.txt',
], ],
{ base: './' } { base: './' }
) )

View File

@ -3,26 +3,24 @@ const path = require('path')
const CopyPlugin = require('copy-webpack-plugin') const CopyPlugin = require('copy-webpack-plugin')
const PACKAGE = require('./package.json')
const FOLDER_SOURCE = './source' const FOLDER_SOURCE = './source'
module.exports = { module.exports = {
entry: FOLDER_SOURCE + '/' + PACKAGE.name + '/front/events-loader.js', entry: FOLDER_SOURCE + '/front/events-loader.js',
output: { output: {
filename: 'events-loader.js', filename: 'events-loader.js',
path: path.resolve(__dirname, 'build/' + PACKAGE.name + '/front'), path: path.resolve(__dirname, 'build/' + '/front'),
}, },
plugins: [ plugins: [
new CopyPlugin({ new CopyPlugin({
patterns: [ patterns: [
{ {
context: FOLDER_SOURCE + '/' + PACKAGE.name, context: FOLDER_SOURCE,
from: '**/*.php', from: '**/*.php',
to: '../', to: '../',
}, },
{ {
context: FOLDER_SOURCE + '/' + PACKAGE.name, context: FOLDER_SOURCE,
from: '**/*.txt', from: '**/*.txt',
to: '../', to: '../',
}, },