remove unneeded folder
This commit is contained in:
parent
d32320a540
commit
d5419448e1
|
@ -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: './' }
|
||||
)
|
||||
|
|
|
@ -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: '../',
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue