Update webpack packages

[MAILPOET-2953]
This commit is contained in:
Pavel Dohnal
2020-06-04 10:11:19 +02:00
committed by Veljko V
parent 0e39b3e2eb
commit 0724cfca0f
3 changed files with 991 additions and 425 deletions

1382
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -115,8 +115,8 @@
"babel-plugin-typescript-to-proptypes": "^1.2.1",
"chai": "^4.2.0",
"chai-jq": "0.0.9",
"clean-webpack-plugin": "^1.0.0",
"copy-webpack-plugin": "^5.1.1",
"clean-webpack-plugin": "^3.0.0",
"copy-webpack-plugin": "^6.0.2",
"cross-env": "^5.1.5",
"eslint": "^6.8.0",
"eslint-config-airbnb": "^18.0.1",
@ -145,11 +145,11 @@
"stylelint": "^13.5.0",
"stylelint-order": "^4.1.0",
"stylelint-scss": "^3.17.2",
"terser-webpack-plugin": "^1.4.3",
"terser-webpack-plugin": "^3.0.3",
"ts-loader": "^7.0.1",
"typescript": "^3.8.2",
"webpack": "^4.43.0",
"webpack-cli": "^3.2.1",
"webpack-manifest-plugin": "^2.0.4"
"webpack-cli": "^3.3.11",
"webpack-manifest-plugin": "^2.2.0"
}
}

View File

@ -1,6 +1,6 @@
const webpack = require('webpack');
const webpackManifestPlugin = require('webpack-manifest-plugin');
const webpackCleanPlugin = require('clean-webpack-plugin');
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
const webpackTerserPlugin = require('terser-webpack-plugin');
const webpackCopyPlugin = require('copy-webpack-plugin');
const path = require('path');
@ -59,9 +59,7 @@ const baseConfig = {
fs: 'empty'
},
plugins: [
new webpackCleanPlugin([
'./assets/dist/js/*',
]),
new CleanWebpackPlugin(),
],
module: {
rules: [
@ -205,12 +203,14 @@ const adminConfig = {
plugins: [
...baseConfig.plugins,
new webpackCopyPlugin([
new webpackCopyPlugin({
patterns: [
{
from: 'node_modules/tinymce/skins/ui/oxide',
to: 'skins/ui/oxide'
},
])
],
}),
],
optimization: {
runtimeChunk: {