Skip to content

Commit

Permalink
fix(core): explicitly define CopyWebpackPlugin toType: 'dir' (#8481)
Browse files Browse the repository at this point in the history
closes undefined
  • Loading branch information
Thomascogez authored and slorber committed Jan 26, 2023
1 parent f3507e0 commit 70bfaae
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/docusaurus/src/commands/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,11 @@ async function buildLocale({
serverConfig = merge(serverConfig, {
plugins: [
new CopyWebpackPlugin({
patterns: staticDirectories.map((dir) => ({from: dir, to: outDir})),
patterns: staticDirectories.map((dir) => ({
from: dir,
to: outDir,
toType: 'dir',
})),
}),
],
});
Expand Down

0 comments on commit 70bfaae

Please sign in to comment.