Commit Graph

14 Commits

Author SHA1 Message Date
Jason Miller
be8fae10f8 Critters: move to async/await (fixes #16), add critical font inlining / preloading 2018-04-17 13:57:48 -04:00
Jason Miller
919a259b0a Add option to make async leave a rel="preload" in the header and append a <link rel="stylesheet"> to the end of body. 2018-04-05 12:41:19 -04:00
Jason Miller
387f4cf9a3 switch to eslint-config-standard 2018-04-05 11:44:32 -04:00
Jason Miller
3f55698439 Switch to recursive getElementsByTagName implementation. 2018-04-03 17:00:26 -04:00
Jason Miller
023367ec60 Switch nwmatcher from thinking we're a DocumentFragment to thinking we're a proper Document. 2018-04-03 17:00:07 -04:00
Jason Miller
fa8c932f14 Allow specifying a function/regex URL filter for external stylesheets 2018-04-03 16:59:41 -04:00
Jason Miller
e9d91ab0f2 Instead of replacing empty rules with comments, remove them. 2018-04-03 16:59:15 -04:00
Jason Miller
da616a3611 Add more explanatory comments 2018-04-03 16:58:53 -04:00
Jason Miller
e1e452e5e3 Hoist embedLinkedStylesheet() onto the class 2018-04-03 16:57:55 -04:00
Jason Miller
b15ed20001 Remove cssnano-powered minify option, add compress option (defaults to true) 2018-04-03 16:56:53 -04:00
Jason Miller
e14502929b Use util.promisify 2018-04-03 16:56:04 -04:00
Jason Miller
f49bcbae87 add note about cssnano not being of much use 2018-04-03 10:58:29 -04:00
Jason Miller
306fecee7c Use modern JS features, add lots of comments. 2018-04-03 10:50:00 -04:00
Jason Miller
0066e20315 - Rename to critters-webpack-plugin
- Format output using pretty-bytes
- Insert inlined style tags immediately after their source link tags
- Add option to turn off external stylesheet processing
- Add `async` option that converts critical'd external sheets to `<link rel="preload" as="style" onload="this.rel='stylesheet'">`
2018-04-03 10:00:41 -04:00