mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-03 08:49:51 +02:00
chore(v2): fix javascript-serialize vulnerability (#3282)
* try to fix the javascript-serialize vulnerability * handle CopyWebpackPlugin breaking change
This commit is contained in:
parent
826dc8dc02
commit
340de92096
3 changed files with 41 additions and 40 deletions
|
@ -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",
|
||||
|
|
|
@ -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,
|
||||
},
|
||||
],
|
||||
}),
|
||||
],
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue