Skip to content

Commit bfcc99a

Browse files
Change README example config to use regex value instead of string value for test fields
1 parent 643b37a commit bfcc99a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ With this configuration:
1919
``` javascript
2020
{
2121
module: { loaders: [
22-
{ test: "\\.jpg$", loader: "file-loader" },
23-
{ test: "\\.png$", loader: "url-loader?mimetype=image/png" }
22+
{ test: /\.jpg$/, loader: "file-loader" },
23+
{ test: /\.png$/, loader: "url-loader?mimetype=image/png" }
2424
]},
2525
output: {
2626
publicPath: "http://cdn.example.com/[hash]/"

0 commit comments

Comments
 (0)