Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

Commit 3fcd983

Browse files
committed
added additional information to README
1 parent 652d27e commit 3fcd983

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

README.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,23 @@ module.exports = {
1616
}
1717
```
1818

19+
It moves every `require("style.css")` in entry chunks into a separate css output file. So your styles are no longer inlined into the javascript, but separate in a css bundle file (`styles.css`). If your total stylesheet volume is big, it will be faster because the stylesheet bundle is loaded in parallel to the javascript bundle.
20+
21+
Advantages:
22+
23+
* Fewer style tags (older IE has a limit)
24+
* CSS SourceMap (with `devtool: "sourcemap"`)
25+
* CSS requested in parallel
26+
* CSS cached separate
27+
* Faster runtime (less code and DOM operations)
28+
29+
Caveats:
30+
31+
* Additional HTTP request
32+
* Longer compilation time
33+
* Complexer configuration
34+
* No runtime public path modification
35+
1936
## API
2037

2138
``` javascript
@@ -40,4 +57,4 @@ There is also a `extract` function on the instance. You should use this if you h
4057

4158
## License
4259

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

0 commit comments

Comments
 (0)