Jake Archibald
d1203d9c42
Switching to 1.4x rather than 140%
2019-02-11 13:58:28 +00:00
Jake Archibald
e7982a73ad
no one must know I did this, or that it got through review.
2019-02-11 11:34:40 +00:00
Jake Archibald
717342c80c
Adding CI step to compare build size to previous master build. ( #450 )
2019-02-11 11:12:57 +00:00
Jake Archibald
428b7d976d
Create CSS typings before build. Fixes #251 . ( #350 )
...
* Create CSS typings before build
* Let's try this.
* Adding comment
* Remove hack from travis
2018-11-28 16:09:08 +00:00
Jason Miller
6994cc3d15
_headers & _redirects generation ( #240 )
...
* Generate `_headers` and `_redirects` by passing assets through ejs templates.
* PR feedback
* Excluding service worker stuff from prerender
* Build SW in dev
* Let's give this a try
* lol
* Is this how it works?
2018-11-09 10:49:01 -08:00
Jake Archibald
71f893cb44
Enhanced offline ( #249 )
...
* Notification of updates & reloading
* Using version in service worker & allowing version to appear elsewhere
* Stupid file
* Ditching changelog for now. Using package json.
* Ugh.
2018-11-09 09:13:14 -08:00
Jason Miller
7d42d4f973
Add a serviceworker ( #234 )
...
* Add a serviceworker
* rename + fix random extra character
* Fixing worker typings
* Fixing types properly this time.
* Once of those rare cases where this matters.
* Naming the things.
* Move registration to the app (so we can use snackbar later)
* Moving SW plugin later so it picks up things like HTML
* MVP service worker
* Two stage-service worker
* Fix prerendering by conditionally awaiting Custom Elements polyfill.
* Fix icon 404's
* add doc comment to autoswplugin
* Fix type
2018-11-08 12:02:05 +00:00
Jason Miller
81aaadbabf
Remove all prerendering & critical CSS stuff
2018-05-01 09:52:58 -04:00
Jason Miller
311d0524db
improve tests
2018-04-24 14:03:44 -04:00
Jason Miller
3ba0a5a22a
Adds single-pass prerendering via a new prerender-loader
2018-04-17 14:04:55 -04:00
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
Jason Miller
34c47242a9
Don't strip :hover, :focus or :active rules.
2018-04-03 09:21:47 -04:00
Jason Miller
8e6a48b94d
let -> const
2018-04-03 08:52:53 -04:00
Jason Miller
20757d9177
Remove commented-out code.
2018-04-02 22:52:30 -04:00
Jason Miller
7bf2ba4690
Initial version of webpack-inline-critical-css-plugin
2018-04-02 22:51:01 -04:00
Jason Miller
1dd0366c05
Fix broken sourcemaps in the TypeScript+Babel setup, clean up webpack config, drop threaded type checking (couldn't get it working)
2018-03-30 16:25:20 -04:00
Jason Miller
76ceea0e52
tabs -> spaces
2018-03-29 15:43:14 -04:00
Jason Miller
e501ffff85
Object.keys().forEach() --> for..of
2018-03-27 20:47:38 -04:00
Jason Miller
2ff3de518d
Remove support for Webpack 3.x and prior from WatchTimestampsPlugin.
2018-03-27 20:45:58 -04:00
Jason Miller
7fca9ac85f
Add explanation and credit to WatchTimestampsPlugin.
2018-03-27 20:43:12 -04:00
Jason Miller
ccf71556a6
Use classes for webpack plugins.
2018-03-27 20:39:13 -04:00
Jason Miller
e691ec9580
Adds an app skeleton. Still needs some work.
2018-03-12 23:03:31 -04:00