Skip to content

Commit 015f034

Browse files
committed
added explaination for ~ syntax
1 parent 0698137 commit 015f034

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ css code will be minimized if specified by the module system.
1313
Good loaders for requiring your assets are the [file-loader](https://github.com/webpack/file-loader)
1414
and the [url-loader](https://github.com/webpack/url-loader) which you should specify in your config (see below).
1515

16+
To be combatible to existing css files:
17+
* `url(image.png)` => `require("./image.png")`
18+
* `url(~module/image.png)` => `require("module/image.png")`
19+
1620
### Example config
1721

1822
This webpack config can load css files, embed small png images as Data Urls and jpg images as files.

0 commit comments

Comments
 (0)