We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e871b8b commit 96f641bCopy full SHA for 96f641b
1 file changed
README.md
@@ -30,7 +30,7 @@ const DrupalLibrariesPlugin = require('drupal-libraries-webpack-plugin');
30
31
module.exports = {
32
plugins: [
33
- new DrupalLibrariesPlugin()
+ new DrupalLibrariesPlugin()
34
],
35
};
36
```
@@ -45,6 +45,14 @@ You can explicitly add a Drupal library dependency to module by using a special
45
require('@drupal(core/jquery)')
46
47
48
+Drupal libraries must be added as [external dependencies](https://webpack.js.org/configuration/externals/) in your webpack configuration:
49
+
50
+```js
51
+externals: {
52
+ '@drupal(drupal/core)': 'Drupal'
53
+}
54
+```
55
56
### Configuration
57
58
#### `path`
0 commit comments