Skip to content

Commit 4ab94d3

Browse files
author
Valentyn
committed
README updated. version 1.0.2
1 parent 13d5490 commit 4ab94d3

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ $ npm install --save-dev string-replace-loader
1010

1111
## Usage:
1212

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.
14+
1315
### Plain replacement:
1416

1517
In your `webpack.config.js`:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "string-replace-loader",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "Replace loader for Webpack",
55
"keywords": [
66
"webpack",

0 commit comments

Comments
 (0)