Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pkp/pkp-lib#9753 [stable-3_3_0-omp] Update jquery, jquery-ui and chart.js to address security vulnerability reports + pkp-lib submodule update #1628

Merged
merged 7 commits into from
Sep 5, 2024
Prev Previous commit
Next Next commit
pkp/pkp-lib#9753 [stable-3_3_0] Copy jquery, jquery-ui and jquery-val…
…idation files from node_modules to lib/pkp vendor and js/plugins folder
blesildaramirez committed Aug 26, 2024
commit 47a635048bc19db4787d6144619158f254cbbeff
20 changes: 20 additions & 0 deletions vue.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
var path = require('path');
const CopyPlugin = require('copy-webpack-plugin');

module.exports = {
css: {
@@ -34,6 +35,25 @@ module.exports = {
hotUpdateChunkFilename: 'hot-updates/hot-update.js',
hotUpdateMainFilename: 'hot-updates/hot-update.json'
},
plugins: [
new CopyPlugin([
// copy jquery and jquery-ui from node_modules to lib/pkp composer's vendor dir
{
from: 'node_modules/jquery/dist/',
to: '../lib/pkp/lib/vendor/components/jquery/',
},
{
from: 'node_modules/jquery-ui/dist/*.js',
to: '../lib/pkp/lib/vendor/components/jqueryui/[name].[ext]',
},

// copy jquery-validation from node_modules to lib/pkp/js/lib
{
from: 'node_modules/jquery-validation/dist/',
to: '../lib/pkp/js/lib/jquery/plugins/validate/',
},
])
],
resolve: {
alias: {
'@': path.resolve(__dirname, 'lib/ui-library/src')