diff --git a/packages/webpack5/__tests__/configuration/base.spec.ts b/packages/webpack5/__tests__/configuration/base.spec.ts index 042b1ee33..df76f6ffd 100644 --- a/packages/webpack5/__tests__/configuration/base.spec.ts +++ b/packages/webpack5/__tests__/configuration/base.spec.ts @@ -16,7 +16,7 @@ describe('base configuration', () => { // only test in base config to make sure App_Resources // are properly excluded from the copy-rules - appResourcesPath: '__jest__/custom_app_resources', + appResourcesPath: 'custom_app_resources', }); expect(base(new Config()).toString()).toMatchSnapshot(); }); diff --git a/packages/webpack5/src/configuration/base.ts b/packages/webpack5/src/configuration/base.ts index 60980557d..11f422b07 100644 --- a/packages/webpack5/src/configuration/base.ts +++ b/packages/webpack5/src/configuration/base.ts @@ -117,7 +117,7 @@ export default function (config: Config, env: IWebpackEnv = _env): Config { config.watchOptions({ ignored: [ `${getProjectFilePath('platforms')}/**`, - `${env.appResourcesPath ?? getProjectFilePath('App_Resources')}/**`, + `${getProjectFilePath(env.appResourcesPath ?? 'App_Resources')}/**`, ], });