mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
fixed vulnerabilty with serialize-javascript
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
const webpack = require('webpack');
|
||||
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
|
||||
const CompressionPlugin = require("compression-webpack-plugin");
|
||||
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
|
||||
const TerserPlugin = require('terser-webpack-plugin');
|
||||
const OptimizeCSSAssetsPlugin = require("optimize-css-assets-webpack-plugin");
|
||||
const cssnano = require("cssnano");
|
||||
|
||||
@@ -29,7 +29,7 @@ module.exports = {
|
||||
|
||||
|
||||
new CompressionPlugin({
|
||||
asset: "[path].gz[query]",
|
||||
filename: "[path].gz[query]",
|
||||
algorithm: "gzip",
|
||||
test: /\.js$|\.css$|\.html$/,
|
||||
threshold: 10240,
|
||||
@@ -39,8 +39,8 @@ module.exports = {
|
||||
],
|
||||
optimization: {
|
||||
minimizer: [
|
||||
new UglifyJsPlugin({
|
||||
uglifyOptions: {
|
||||
new TerserPlugin({
|
||||
terserOptions: {
|
||||
beautify: false,
|
||||
mangle: false,
|
||||
output: {
|
||||
|
Reference in New Issue
Block a user