Ignore `require.build.js` when syncing project files
authorMatthias Schmidt <gravatronics@live.com>
Mon, 31 Jul 2017 15:25:19 +0000 (17:25 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Mon, 31 Jul 2017 15:25:19 +0000 (17:25 +0200)
wcfsetup/install/files/lib/system/devtools/pip/DevtoolsPip.class.php

index 9722880a6d1ddd445fa7de43571c9f0928a3d1dc..a3108ae80d530fffed15d0e9ae6276125690dcee 100644 (file)
@@ -219,6 +219,10 @@ class DevtoolsPip extends DatabaseObjectDecorator {
                                                                // and cannot be restored by WSC itself
                                                                return false;
                                                        }
+                                                       else if ($filename === 'require.build.js') {
+                                                               // ignore require build configuration file
+                                                               return false;
+                                                       }
                                                        else if ($filename === 'templates') {
                                                                // ignores both `templates` and `acp/templates`
                                                                return false;
@@ -288,6 +292,10 @@ class DevtoolsPip extends DatabaseObjectDecorator {
                                                                // ignore dot files and files/directories starting with a dot
                                                                return false;
                                                        }
+                                                       else if ($filename === 'require.build.js') {
+                                                               // ignore require build configuration file
+                                                               return false;
+                                                       }
                                                        
                                                        return true;
                                                });