Skip to content

Commit 643b37a

Browse files
committed
Update README.md, additional backslash needed
JSHint will complain about "\.jpg$", because JS will see that string as .jpg$, not \.jpg$
1 parent 5fb1cf3 commit 643b37a

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)