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
+19-1
Original file line number
Diff line number
Diff line change
@@ -7,12 +7,30 @@ var css = require("css!./file.css");
7
7
// => returns css code from file.css, resolves imports and url(...)
8
8
```
9
9
10
+
css code will be minimized if specified by the module system.
11
+
10
12
`@import` will be required with this css loader.
11
13
12
14
`url(...)` will be required. You should define useful loaders by config.
13
15
14
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).
15
17
18
+
### Example config
19
+
20
+
This webpack config can load css files, embed small png images as Data Urls and jpg images as files.
0 commit comments