summaryrefslogtreecommitdiffstats
path: root/sites
diff options
context:
space:
mode:
authorNathaniel Catchpole2016-07-20 21:06:16 (GMT)
committerNathaniel Catchpole2016-07-20 21:06:16 (GMT)
commit68a543a315925bcf2c83faa0883914fef68875ff (patch)
tree506238f6b90dd63b014771df9800ddab1db06dcc /sites
parent066437b85d60c9047fc002246dba16ca1ff004f7 (diff)
Issue #2329453 by alexpott, joelpittet, hussainweb, kaidjohnson, andriyun, JohnAlbin, mirie, steveoliver, quicksketch, geerlingguy, RobLoach, jenlampton, SebCorbin, pablo.guerino, afoster, markcarver, danbohea, andypost, catch, donquixote, marcvangend, David_Rothstein, LewisNyman, neclimdul: Ignore front end vendor folders to improve directory search performance
Diffstat (limited to 'sites')
-rw-r--r--sites/default/default.settings.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/sites/default/default.settings.php b/sites/default/default.settings.php
index d6d130e..67f1104 100644
--- a/sites/default/default.settings.php
+++ b/sites/default/default.settings.php
@@ -716,6 +716,21 @@ $settings['container_yamls'][] = __DIR__ . '/services.yml';
*/
/**
+ * The default list of directories that will be ignored by Drupal's file API.
+ *
+ * By default ignore node_modules and bower_components folders to avoid issues
+ * with common frontend tools and recursive scanning of directories looking for
+ * extensions.
+ *
+ * @see file_scan_directory()
+ * @see \Drupal\Core\Extension\ExtensionDiscovery::scanDirectory()
+ */
+$settings['file_scan_ignore_directories'] = [
+ 'node_modules',
+ 'bower_components',
+];
+
+/**
* Load local development override configuration, if available.
*
* Use settings.local.php to override variables on secondary (staging,