Skip to content

Commit 818c1d7

Browse files
committed
clarified note on @import and url()
1 parent 5ef2739 commit 818c1d7

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

README.md

+4-6
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,9 @@ var css = require("css!./file.css");
99

1010
css code will be minimized if specified by the module system.
1111

12-
`@import` will be required with this css loader.
13-
14-
`url(...)` will be required. You should define useful loaders by config.
15-
16-
Good loaders to require these files is the [file-loader](https://github.com/webpack/file-loader) and the [url-loader](https://github.com/webpack/url-loader).
12+
`@import` and `url(...)` are interpreted like `require()` and will be resolved by the css-loader.
13+
Good loaders for requiring your assets are the [file-loader](https://github.com/webpack/file-loader)
14+
and the [url-loader](https://github.com/webpack/url-loader) which you should specify in your config (see below).
1715

1816
### Example config
1917

@@ -33,4 +31,4 @@ module.exports = {
3331

3432
## License
3533

36-
MIT (http://www.opensource.org/licenses/mit-license.php)
34+
MIT (http://www.opensource.org/licenses/mit-license.php)

0 commit comments

Comments
 (0)