You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-10
Original file line number
Diff line number
Diff line change
@@ -9,17 +9,9 @@ var css = require("css!./file.css");
9
9
10
10
`@import` will be required with this css loader.
11
11
12
-
`url(...)` will be required with the loader specified in the options.
13
-
If `options.css.requireUrl` is a string it will be prefixed to the required url.
14
-
If it isn't a string `url(...)` will not be replaced.
15
-
`options.css.requireUrl` defaults to `"file/auto!"`.
12
+
`url(...)` will be required. You should define useful loaders by config.
16
13
17
-
A alternative to the file-loader is the
18
-
[url-loader](https://github.com/sokra/webpack-url-loader) which can use Data Urls.
19
-
The use it specify `"url/auto!"`.
20
-
21
-
Don't forget to polyfill `require` if you want to use it in node.
22
-
See `webpack` documentation.
14
+
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).
0 commit comments