update webpack to 5

This commit is contained in:
Raphael 2022-01-25 13:54:48 +01:00
parent df53c41951
commit 6d3f2c3c06
4 changed files with 1775 additions and 3026 deletions

View File

@ -1,4 +1,4 @@
const merge = require("webpack-merge"); const { merge } = require("webpack-merge");
const baseConfig = require("./webpack.base"); const baseConfig = require("./webpack.base");
module.exports = merge(baseConfig, { module.exports = merge(baseConfig, {

View File

@ -1,4 +1,4 @@
const merge = require("webpack-merge"); const { merge } = require("webpack-merge");
const baseConfig = require("./webpack.base"); const baseConfig = require("./webpack.base");
const webpack = require("webpack"); const webpack = require("webpack");
@ -8,11 +8,9 @@ const devConfig = merge(baseConfig, {
optimization: { optimization: {
minimize: false, minimize: false,
}, },
plugins: [ plugins: [new webpack.HotModuleReplacementPlugin(), new webpack.NoEmitOnErrorsPlugin()].concat(
new webpack.HotModuleReplacementPlugin(), baseConfig.plugins
new webpack.NamedModulesPlugin(), ),
new webpack.NoEmitOnErrorsPlugin(),
].concat(baseConfig.plugins),
}); });
module.exports = devConfig; module.exports = devConfig;

4761
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -32,25 +32,25 @@
"ajv": "6.12.2", "ajv": "6.12.2",
"apidoc": "^0.50.3", "apidoc": "^0.50.3",
"dompurify": "^2.3.4", "dompurify": "^2.3.4",
"express": "4.*", "express": "^4.17.2",
"formidable": "^1.2.6", "formidable": "^1.2.6",
"fs-extra": "7.*", "fs-extra": "7.*",
"html2canvas": "^1.3.3", "html2canvas": "^1.4.1",
"jquery-ui-rotatable": "^1.1.0", "jquery-ui-rotatable": "^1.1.0",
"js-yaml": "3.13.1", "js-yaml": "3.13.1",
"jsdom": "^14.0.0", "jsdom": "^14.0.0",
"jsprim": "^1.4.2", "jsprim": "^1.4.2",
"socket.io": "^4.4.0", "socket.io": "^4.4.1",
"socket.io-client": "^4.4.0", "socket.io-client": "^4.4.1",
"uuid": "^8.1.0", "uuid": "^8.1.0",
"webdav": "^4.6.0" "webdav": "^4.8.0"
}, },
"devDependencies": { "devDependencies": {
"@babel/cli": "^7.16.0", "@babel/cli": "^7.16.8",
"@babel/core": "^7.16.0", "@babel/core": "^7.16.12",
"@babel/plugin-proposal-class-properties": "^7.16.0", "@babel/plugin-proposal-class-properties": "^7.16.7",
"@babel/polyfill": "^7.8.7", "@babel/polyfill": "^7.8.7",
"@babel/preset-env": "^7.16.4", "@babel/preset-env": "^7.16.11",
"@fortawesome/fontawesome-svg-core": "^1.2.35", "@fortawesome/fontawesome-svg-core": "^1.2.35",
"@fortawesome/free-brands-svg-icons": "^5.15.3", "@fortawesome/free-brands-svg-icons": "^5.15.3",
"@fortawesome/free-regular-svg-icons": "^5.15.3", "@fortawesome/free-regular-svg-icons": "^5.15.3",
@ -60,21 +60,21 @@
"clean-webpack-plugin": "^3.0.0", "clean-webpack-plugin": "^3.0.0",
"copy-webpack-plugin": "^6.3.2", "copy-webpack-plugin": "^6.3.2",
"css-loader": "^5.2.6", "css-loader": "^5.2.6",
"html-webpack-plugin": "^4.5.2", "html-webpack-plugin": "^5.5.0",
"husky": "^4.2.5", "husky": "^4.2.5",
"jest": "26.0.1", "jest": "26.0.1",
"jquery": "^3.6.0", "jquery": "^3.6.0",
"jquery-ui": "^1.13.0", "jquery-ui": "^1.13.1",
"keymage": "^1.1.3", "keymage": "^1.1.3",
"pdfjs-dist": "2.6.347", "pdfjs-dist": "2.6.347",
"prettier": "^2.5.1", "prettier": "^2.5.1",
"pretty-quick": "^2.0.1", "pretty-quick": "^2.0.1",
"style-loader": "^1.1.4", "style-loader": "^1.1.4",
"vanilla-picker": "^2.12.1", "vanilla-picker": "^2.12.1",
"webpack": "^4.42.1", "webpack": "^5.67.0",
"webpack-cli": "^3.3.11", "webpack-cli": "^4.9.2",
"webpack-dev-server": "^3.11.3", "webpack-dev-server": "^3.11.3",
"webpack-merge": "^4.2.2" "webpack-merge": "^5.8.0"
}, },
"author": "Cracker0dks", "author": "Cracker0dks",
"license": "MIT", "license": "MIT",