mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 11:01:21 +08:00
fix: watchIgnore should be a full path
This commit is contained in:
@ -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();
|
||||
});
|
||||
|
@ -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')}/**`,
|
||||
],
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user