Skip to content

Commit 2fba8b5

Browse files
smmoosavijoshwiens
authored andcommitted
docs: Multiple expose documentation
1 parent 3e92e2a commit 2fba8b5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,14 @@ module: {
2525
]
2626
}
2727
```
28+
Also for multiple expose you can use `!` in loader string:
29+
```
30+
module: {
31+
loaders: [
32+
{ test: require.resolve("jquery"), loader: "expose?$!expose?jQuery" },
33+
]
34+
}
35+
```
2836

2937
The `require.resolve` is a node.js call (unrelated to `require.resolve` in webpack
3038
processing -- check the node.js docs instead). `require.resolve` gives you the

0 commit comments

Comments
 (0)