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() {
return src(
[
FOLDER_BUILD + '/' + PACKAGE.name + '/front/events-loader.js',
FOLDER_BUILD + '/' + PACKAGE.name + '/' + PACKAGE.name + '.php',
FOLDER_BUILD + '/' + PACKAGE.name + '/includes/constants.php',
FOLDER_BUILD + '/' + PACKAGE.name + '/readme.txt',
FOLDER_BUILD + '/front/events-loader.js',
FOLDER_BUILD + '/' + PACKAGE.name + '.php',
FOLDER_BUILD + '/includes/constants.php',
FOLDER_BUILD + '/readme.txt',
],
{ base: './' }
)

View File

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