mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 19:26:42 +08:00
fix: revert copy rule glob filter
This commit is contained in:
@ -71,15 +71,17 @@ export function applyCopyRules(config: Config) {
|
||||
config.plugin('CopyWebpackPlugin').use(CopyWebpackPlugin, [
|
||||
{
|
||||
patterns: Array.from(copyRules)
|
||||
.filter((glob) => {
|
||||
if (process.env.NODE_ENV === 'test') {
|
||||
return true;
|
||||
}
|
||||
// remove rules that do not match any paths
|
||||
// prevents webpack watch mode from firing
|
||||
// due to "removed" paths.
|
||||
return globbySync(glob).length > 0;
|
||||
})
|
||||
// reverted: removes valid rules occasionally (ie fonts)
|
||||
// todo: re-visit in future...
|
||||
// .filter((glob) => {
|
||||
// if (process.env.NODE_ENV === 'test') {
|
||||
// return true;
|
||||
// }
|
||||
// // remove rules that do not match any paths
|
||||
// // prevents webpack watch mode from firing
|
||||
// // due to "removed" paths.
|
||||
// return globbySync(glob).length > 0;
|
||||
// })
|
||||
.map((glob) => ({
|
||||
from: glob,
|
||||
context: entryDir,
|
||||
|
Reference in New Issue
Block a user