Exclude node_modules from manifests

Believe it or not, some node modules contain PHP files,
which get included by default otherwise.

This also fixes a performance regression on ?flush,
the existence of node_modules will cause a lot of unneccesary file lookups.
This commit is contained in:
Ingo Schommer 2016-02-29 21:17:38 +13:00
parent 2a3f4daa76
commit 04e9376a5a

View File

@ -22,7 +22,8 @@ class ManifestFileFinder extends SS_FileFinder {
protected static $default_options = array(
'include_themes' => false,
'ignore_tests' => true,
'min_depth' => 1
'min_depth' => 1,
'ignore_dirs' => array('node_modules')
);
public function acceptDir($basename, $pathname, $depth) {