You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-5Lines changed: 9 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -8,9 +8,13 @@ Perform replacements (plain and regular expression) in the contents loaded by th
8
8
$ npm install --save-dev string-replace-loader
9
9
```
10
10
11
+
With release of 2.0.0 the loader is expected to be used in Node v4+ environment.
12
+
Support for Node v3 and lower was dropped, but you can install and use the loader version of 1.3.0 in older environments.
13
+
11
14
## Usage:
12
15
13
-
In general, loader allows to perform replacements in a way [String.prototype.replace()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace) does (loader uses it internally). For instance, it means that if you want to replace all occurences, you should use RegExp in `query.search` with `g` flag in `query.flags`, etc.
16
+
In general, loader allows to perform replacements in a way [String.prototype.replace()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace) does (loader uses it internally).
17
+
For instance, it means that if you want to replace all occurrences, you should use RegExp-like string in `query.search` with `g` flag in `query.flags`, etc.
0 commit comments