mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
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:
parent
2a3f4daa76
commit
04e9376a5a
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user