We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73c54e7 commit 3203e05Copy full SHA for 3203e05
README.md
@@ -87,6 +87,31 @@ module.exports = {
87
}
88
```
89
90
+### Strict mode replacement:
91
+
92
+You can set strict mode to ensure that the replacement was done:
93
94
+In your `webpack.config.js`:
95
96
+```javascript
97
+module.exports = {
98
+ // ...
99
+ module: {
100
+ loaders: [
101
+ {
102
+ test: /fileInWhichJQueryIsUndefined\.js$/,
103
+ loader: 'string-replace',
104
+ query: {
105
+ search: 'jQuery',
106
+ replace: 'window.$',
107
+ strict: true
108
+ }
109
110
+ ]
111
112
+}
113
+```
114
115
## Contributing:
116
117
Feel free to open issues to propose stuff and participate. Pull requests are also welcome.
0 commit comments