Skip to content

Commit 70bfaae

Browse files
Thomascogezslorber
authored andcommitted
fix(core): explicitly define CopyWebpackPlugin toType: 'dir' (#8481)
closes undefined
1 parent f3507e0 commit 70bfaae

File tree

1 file changed

+5
-1
lines changed
  • packages/docusaurus/src/commands

1 file changed

+5
-1
lines changed

packages/docusaurus/src/commands/build.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,11 @@ async function buildLocale({
199199
serverConfig = merge(serverConfig, {
200200
plugins: [
201201
new CopyWebpackPlugin({
202-
patterns: staticDirectories.map((dir) => ({from: dir, to: outDir})),
202+
patterns: staticDirectories.map((dir) => ({
203+
from: dir,
204+
to: outDir,
205+
toType: 'dir',
206+
})),
203207
}),
204208
],
205209
});

0 commit comments

Comments
 (0)