fix: watchIgnore should be a full path

This commit is contained in:
Igor Randjelovic
2021-04-14 15:14:55 +02:00
parent 4f8522f5d4
commit 0601ca763b
2 changed files with 2 additions and 2 deletions

View File

@ -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();
});

View File

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