Устранить vulnerabilites при миксовании
При сборке npm run dev возникают ошибки несоответствия версий, необходимо подобрать модули так, чтобы сборка проходила без ошибок.
Сборка проходит по готовым package.json и webpack.mix.json
{
"private": true,
"scripts": {
"dev": "npm run development",
"development": "mix",
"watch": "mix watch",
"watch-poll": "mix watch -- --watch-options-poll=1000",
"hot": "mix watch --hot",
"prod": "npm run production",
"production": "mix --production"
},
"devDependencies": {
"axios": "^0.24",
"cross-env": "^7.0.3",
"laravel-mix": "^6.0.39",
"laravel-mix-template-minifier": "^1.0.0",
"lodash": "^4.17.21",
"postcss": "^8.4.4",
"resolve-url-loader": "^4.0.0",
"sass": "^1.44.0",
"sass-loader": "^12.4.0",
"vue": "^2.6.14",
"vue-loader": "^15.9.8",
"vue-template-compiler": "^2.6.14"
},
"dependencies": {
"@fancyapps/fancybox": "^3.5.7",
"@fortawesome/fontawesome-free": "^5.15.4",
"@tkrotoff/bootstrap-floating-label": "0.8",
"admin-lte": "^3.1.0",
"bootstrap-table": "^1.19.1",
"bootstrap4-toggle": "^3.6.1",
"Chart.BarFunnel.js": "git+https://github.com/chartjs/Chart.BarFunnel.js.git",
"jquery": "^3.6.0",
"luxon": "^2.1.1",
"moment": "^2.29.1",
"npm": "^8.2.0",
"popper.js": "^1.16",
"progressbar.js": "^1.1.0",
"vue-axios": "^3.4.0",
"vue-chartjs": "^3.5.1",
"vue-knob-control": "^1.6.0",
"vue-router": "^3.5.3",
"vue-simple-alert": "^1.1.1",
"vue-simple-spinner": "^1.2.10",
"vue2-datepicker": "^3.10.4"
}
}
const mix = require('laravel-mix');
mix.minTemplate = require('laravel-mix-template-minifier');
if (mix.inProduction()) {
mix.version();
mix.minTemplate("storage/framework/views/\*.php", "storage/framework/views/", {
collapseInlineTagWhitespace: true,
collapseWhitespace: true,
minifyCSS: true,
minifyJS: true,
processConditionalComments: true,
removeAttributeQuotes: false,
removeComments: true,
removeTagWhitespace: false,
trimCustomFragments: false,
})
}
mix.js('resources/js/app.js', 'public/js').vue({ version: 2 });//.version(); // was made !!!!!
//mix.js('resources/js/monitoring_bootstrap-table.js', 'public/js').version();
mix.js('resources/js/export_bootstrap-table.js', 'public/js').version(); // was made !!!!! does not influence
mix.js('resources/js/datatables_monitoring.js', 'public/js').version();
mix.js('resources/js/datatables_users.js', 'public/js').version();
mix.js('resources/js/datatables_batteries.js', 'public/js').version();
mix.js('resources/js/datatables_motorist.js', 'public/js').version();
mix.js('resources/js/jquery.placeholder.label.min.js', 'public/js').version();
//mix.js('resources/js/**/*.js', 'public/js').version();
/*mix.js([ 'resources/js/app.js',
'resources/js/monitoring_bootstrap-table.js',
'resources/js/datatables_monitoring.js'
], 'public/js').version();*/
mix.sass('resources/sass/app.scss', 'public/css').version();
mix.sass('resources/sass/monitoring.scss', 'public/css').version();
//mix.sass('resources/sass/backend.scss', 'public/css').version(); // AdminLTE 3
mix.sass('resources/sass/styles.scss', 'public/css').version(); // frontend Bootstrap 4.6
//mix.sass('resources/sass/login_stark.scss', 'public/css').version();
mix.sass('resources/sass/login_lionsystems.scss', 'public/css').version();
//mix.sass('resources/sass/ls_theme.scss', 'public/css').version(); // lionsystems themes custom BS
|