fix(core): explicitly define CopyWebpackPlugin toType: 'dir' (#8481)

closes undefined
This commit is contained in:
Thomas.CA 2022-12-27 19:20:42 +01:00 committed by sebastienlorber
parent f3507e0505
commit 70bfaae2b3

View file

@ -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',
})),
}),
],
});