Skip to content

Commit

Permalink
docs(README): add missing syntax highlight annotations (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Goldberg authored and joshwiens committed Nov 18, 2017
1 parent e789b77 commit 3191765
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ require("expose-loader?libraryName!./file.js");

For example, let's say you want to expose jQuery as a global called `$`:

```
```js
require("expose-loader?$!jquery");
```

Expand All @@ -40,15 +40,15 @@ Thus, `window.$` is then available in the browser console.
Alternately, you can set this in your config file:

webpack v1 usage
```
```js
module: {
loaders: [
{ test: require.resolve("jquery"), loader: "expose-loader?$" }
]
}
```
webpack v2 usage
```
```js
module: {
rules: [{
test: require.resolve('jquery'),
Expand All @@ -64,15 +64,15 @@ Let's say you also want to expose it as `window.jQuery` in addition to `window.$
For multiple expose you can use `!` in loader string:

webpack v1 usage
```
```js
module: {
loaders: [
{ test: require.resolve("jquery"), loader: "expose-loader?$!expose-loader?jQuery" },
]
}
```
webpack v2 usage
```
```js
module: {
rules: [{
test: require.resolve('jquery'),
Expand Down

0 comments on commit 3191765

Please sign in to comment.