Vendor: Internal: Remove copy-webpack-plugin

pull/4991/head
Angel Fernando Quiroz Campos 2 years ago
parent 5cd7cee9e6
commit 05995dbe19
  1. 64
      webpack.config.js
  2. 56
      yarn.lock

@ -8,8 +8,6 @@ const PurgeCssPlugin = require('purgecss-webpack-plugin');
const glob = require('glob-all');
const path = require('path');
const CopyPlugin = require('copy-webpack-plugin');
Encore
.setOutputPath('public/build/')
.setManifestKeyPrefix('public/build/')
@ -155,37 +153,26 @@ Encore
;
//Encore.addPlugin(new VueLoaderPlugin);
Encore.addPlugin(new CopyPlugin({
patterns: [
{
from: './node_modules/mediaelement/build',
to: 'libs/mediaelement'
},
{
from: './node_modules/mediaelement-plugins/dist',
to: 'libs/mediaelement/plugins'
},
{
from: './node_modules/mathjax/config',
to: 'libs/mathjax/config'
},
{
from: './node_modules/tinymce/skins',
to: 'libs/tinymce/skins'
},
{
context: 'node_modules/moment/locale',
from: '**/*',
to: 'libs/locale/'
},
]
}
));
// Encore.addPlugin(new CopyPlugin([{
// from: 'assets/css/themes/' + theme + '/images',
// to: 'css/themes/' + theme + '/images'
// };
Encore.copyFiles({
from: "./node_modules/mediaelement/build",
to: 'libs/mediaelement/[path][name].[ext]'
});
Encore.copyFiles({
from: "./node_modules/mediaelement-plugins/dist",
to: 'libs/mediaelement/plugins/[path][name].[ext]'
});
Encore.copyFiles({
from: "./node_modules/mathjax/config",
to: "libs/mathjax/config/[path][name].[ext]"
});
Encore.copyFiles({
from: "./node_modules/tinymce/skins",
to: "libs/tinymce/skins/[path][name].[ext]"
});
Encore.copyFiles({
from: "node_modules/moment/locale",
to: "libs/locale/[path][name].[ext]"
});
const themes = [
'chamilo'
@ -195,13 +182,10 @@ const themes = [
themes.forEach(function (theme) {
Encore.addStyleEntry('css/themes/' + theme + '/default', './assets/css/themes/' + theme + '/default.css');
// Copy images from themes into public/build
Encore.addPlugin(new CopyPlugin({
patterns: [{
from: 'assets/css/themes/' + theme + '/images',
to: 'css/themes/' + theme + '/images'
}]
},
));
Encore.copyFiles({
from: "assets/css/themes/" + theme + "/images",
to: "css/themes/" + theme + "/images/[name].[ext]",
});
});
// Fix free-jqgrid languages files

@ -3650,7 +3650,6 @@ __metadata:
bootstrap-daterangepicker: ^3.1.0
bootstrap-select: ^1.13.18
chart.js: ^3.9.1
copy-webpack-plugin: 11.0.0
core-js: 3.31.1
cropper: ^4.1.0
datepair.js: ^0.4.17
@ -4038,22 +4037,6 @@ __metadata:
languageName: node
linkType: hard
"copy-webpack-plugin@npm:11.0.0":
version: 11.0.0
resolution: "copy-webpack-plugin@npm:11.0.0"
dependencies:
fast-glob: ^3.2.11
glob-parent: ^6.0.1
globby: ^13.1.1
normalize-path: ^3.0.0
schema-utils: ^4.0.0
serialize-javascript: ^6.0.0
peerDependencies:
webpack: ^5.1.0
checksum: df4f8743f003a29ee7dd3d9b1789998a3a99051c92afb2ba2203d3dacfa696f4e757b275560fafb8f206e520a0aa78af34b990324a0e36c2326cefdeef3ca82e
languageName: node
linkType: hard
"core-js-compat@npm:^3.31.0, core-js-compat@npm:^3.32.2":
version: 3.33.0
resolution: "core-js-compat@npm:3.33.0"
@ -4549,15 +4532,6 @@ __metadata:
languageName: node
linkType: hard
"dir-glob@npm:^3.0.1":
version: 3.0.1
resolution: "dir-glob@npm:3.0.1"
dependencies:
path-type: ^4.0.0
checksum: fa05e18324510d7283f55862f3161c6759a3f2f8dbce491a2fc14c8324c498286c54282c1f0e933cb930da8419b30679389499b919122952a4f8592362ef4615
languageName: node
linkType: hard
"dlv@npm:^1.1.3":
version: 1.1.3
resolution: "dlv@npm:1.1.3"
@ -5139,7 +5113,7 @@ __metadata:
languageName: node
linkType: hard
"fast-glob@npm:^3.2.11, fast-glob@npm:^3.3.0":
"fast-glob@npm:^3.3.0":
version: 3.3.1
resolution: "fast-glob@npm:3.3.1"
dependencies:
@ -5548,7 +5522,7 @@ __metadata:
languageName: node
linkType: hard
"glob-parent@npm:^6.0.1, glob-parent@npm:^6.0.2":
"glob-parent@npm:^6.0.2":
version: 6.0.2
resolution: "glob-parent@npm:6.0.2"
dependencies:
@ -5646,19 +5620,6 @@ __metadata:
languageName: node
linkType: hard
"globby@npm:^13.1.1":
version: 13.2.2
resolution: "globby@npm:13.2.2"
dependencies:
dir-glob: ^3.0.1
fast-glob: ^3.3.0
ignore: ^5.2.4
merge2: ^1.4.1
slash: ^4.0.0
checksum: f3d84ced58a901b4fcc29c846983108c426631fe47e94872868b65565495f7bee7b3defd68923bd480582771fd4bbe819217803a164a618ad76f1d22f666f41e
languageName: node
linkType: hard
"globby@npm:^6.1.0":
version: 6.1.0
resolution: "globby@npm:6.1.0"
@ -5970,7 +5931,7 @@ __metadata:
languageName: node
linkType: hard
"ignore@npm:^5.2.0, ignore@npm:^5.2.4":
"ignore@npm:^5.2.0":
version: 5.2.4
resolution: "ignore@npm:5.2.4"
checksum: 3d4c309c6006e2621659311783eaea7ebcd41fe4ca1d78c91c473157ad6666a57a2df790fe0d07a12300d9aac2888204d7be8d59f9aaf665b1c7fcdb432517ef
@ -6852,7 +6813,7 @@ __metadata:
languageName: node
linkType: hard
"merge2@npm:^1.3.0, merge2@npm:^1.4.1":
"merge2@npm:^1.3.0":
version: 1.4.1
resolution: "merge2@npm:1.4.1"
checksum: 7268db63ed5169466540b6fb947aec313200bcf6d40c5ab722c22e242f651994619bcd85601602972d3c85bd2cc45a358a4c61937e9f11a061919a1da569b0c2
@ -9303,7 +9264,7 @@ __metadata:
languageName: node
linkType: hard
"serialize-javascript@npm:^6.0.0, serialize-javascript@npm:^6.0.1":
"serialize-javascript@npm:^6.0.1":
version: 6.0.1
resolution: "serialize-javascript@npm:6.0.1"
dependencies:
@ -9438,13 +9399,6 @@ __metadata:
languageName: node
linkType: hard
"slash@npm:^4.0.0":
version: 4.0.0
resolution: "slash@npm:4.0.0"
checksum: da8e4af73712253acd21b7853b7e0dbba776b786e82b010a5bfc8b5051a1db38ed8aba8e1e8f400dd2c9f373be91eb1c42b66e91abb407ff42b10feece5e1d2d
languageName: node
linkType: hard
"smart-buffer@npm:^4.2.0":
version: 4.2.0
resolution: "smart-buffer@npm:4.2.0"

Loading…
Cancel
Save