Skip to content

Commit

Permalink
handle CopyWebpackPlugin breaking change
Browse files Browse the repository at this point in the history
  • Loading branch information
slorber committed Aug 14, 2020
1 parent 4234bee commit 20fab66
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions packages/docusaurus/src/commands/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
],
}),
],
});
}
Expand Down

0 comments on commit 20fab66

Please sign in to comment.