chore(v2): fix javascript-serialize vulnerability (#3282)

* try to fix the javascript-serialize vulnerability

* handle CopyWebpackPlugin breaking change
This commit is contained in:
Sébastien Lorber 2020-08-14 14:27:16 +02:00 committed by GitHub
parent 826dc8dc02
commit 340de92096
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 41 additions and 40 deletions

View file

@ -58,7 +58,7 @@
"chalk": "^3.0.0",
"chokidar": "^3.3.0",
"commander": "^4.0.1",
"copy-webpack-plugin": "^5.0.5",
"copy-webpack-plugin": "^6.0.3",
"core-js": "^2.6.5",
"css-loader": "^3.4.2",
"del": "^5.1.0",

View file

@ -76,12 +76,14 @@ export default async function build(
if (fs.existsSync(staticDir)) {
serverConfig = merge(serverConfig, {
plugins: [
new CopyWebpackPlugin([
{
from: staticDir,
to: outDir,
},
]),
new CopyWebpackPlugin({
patterns: [
{
from: staticDir,
to: outDir,
},
],
}),
],
});
}