diff --git a/packages/webpack5/src/helpers/copyRules.ts b/packages/webpack5/src/helpers/copyRules.ts index 0f19d724e..52e3aff04 100644 --- a/packages/webpack5/src/helpers/copyRules.ts +++ b/packages/webpack5/src/helpers/copyRules.ts @@ -67,7 +67,7 @@ export function applyCopyRules(config: Config) { ); // ignore everything in App_Resources (regardless where they are located) - globOptions.ignore.push(`${relative(entryDir, appResourcesFullPath)}/**`); + globOptions.ignore.push(`**/${relative(entryDir, appResourcesFullPath)}/**`); } config.plugin('CopyWebpackPlugin').use(CopyWebpackPlugin, [