We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ad34b6 commit e426260Copy full SHA for e426260
1 file changed
README.md
@@ -122,7 +122,7 @@ module.exports = {
122
123
#### `requirePattern`
124
125
-Type: `String`
+Type: `RegExp`
126
127
Default: `/^@drupal\(([^\)]+)\)$/`
128
@@ -132,8 +132,8 @@ The pattern to use for detecting drupal library dependencies.
132
module.exports = {
133
plugins: [
134
new DrupalLibrariesPlugin({
135
- // always use the chunk hash as the library name.
136
- libraryPattern: /^(jquery|/
+ // Only pick up require('jquery') or require('Drupal') statements.
+ libraryPattern: /^(jquery|Drupal)$/
137
})
138
],
139
};
0 commit comments