Skip to content

Commit 163413f

Browse files
committed
update readme to mention array replacement
1 parent b77bd43 commit 163413f

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,29 @@ module.exports = {
5959
}
6060
```
6161

62+
### Array replacement:
63+
64+
In your `webpack.config.js`:
65+
66+
```javascript
67+
module.exports = {
68+
// ...
69+
module: {
70+
loaders: [
71+
{
72+
test: /fileInWhichJQueryIsUndefined\.js$/,
73+
loader: 'string-replace',
74+
query: {
75+
replace: [
76+
{search: 'AAAAA', replace: 'BBBBB'},
77+
]
78+
}
79+
}
80+
]
81+
}
82+
}
83+
```
84+
6285
## Contributing:
6386

6487
Feel free to open issues to propose stuff and participate. Pull requests are also welcome.

0 commit comments

Comments
 (0)