mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 02:54:11 +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, [
|
config.plugin('CopyWebpackPlugin').use(CopyWebpackPlugin, [
|
||||||
{
|
{
|
||||||
patterns: Array.from(copyRules)
|
patterns: Array.from(copyRules)
|
||||||
.filter((glob) => {
|
// reverted: removes valid rules occasionally (ie fonts)
|
||||||
if (process.env.NODE_ENV === 'test') {
|
// todo: re-visit in future...
|
||||||
return true;
|
// .filter((glob) => {
|
||||||
}
|
// if (process.env.NODE_ENV === 'test') {
|
||||||
// remove rules that do not match any paths
|
// return true;
|
||||||
// prevents webpack watch mode from firing
|
// }
|
||||||
// due to "removed" paths.
|
// // remove rules that do not match any paths
|
||||||
return globbySync(glob).length > 0;
|
// // prevents webpack watch mode from firing
|
||||||
})
|
// // due to "removed" paths.
|
||||||
|
// return globbySync(glob).length > 0;
|
||||||
|
// })
|
||||||
.map((glob) => ({
|
.map((glob) => ({
|
||||||
from: glob,
|
from: glob,
|
||||||
context: entryDir,
|
context: entryDir,
|
||||||
|
Reference in New Issue
Block a user