Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
sokra committed Feb 10, 2013
1 parent ab8b410 commit 4cac434
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,9 @@ var css = require("css!./file.css");

`@import` will be required with this css loader.

`url(...)` will be required with the loader specified in the options.
If `options.css.requireUrl` is a string it will be prefixed to the required url.
If it isn't a string `url(...)` will not be replaced.
`options.css.requireUrl` defaults to `"file/auto!"`.
`url(...)` will be required. You should define useful loaders by config.

A alternative to the file-loader is the
[url-loader](https://github.com/sokra/webpack-url-loader) which can use Data Urls.
The use it specify `"url/auto!"`.

Don't forget to polyfill `require` if you want to use it in node.
See `webpack` documentation.
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).

## License

Expand Down

0 comments on commit 4cac434

Please sign in to comment.