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
82d33ea91c
Add prefer-const eslint rule
2018-04-03 08:53:05 -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
2d02562753
tabs -> spaces
2018-04-02 22:49:19 -04:00
Jason Miller
fbcd16063d
Load images as both binary strings and blobs.
2018-03-30 16:26:00 -04:00
Jason Miller
d023263f57
In development, persist application state across hot reloads.
2018-03-30 16:25:41 -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
fc84c81a47
Make @bind the same as Surma's implementation
2018-03-30 13:32:16 -04:00
Jason Miller
8f452ddf6d
Our simplified @bind decorator didn't work :( The getter is needed in order to defer binding until there is an instance to bind to, the simpler implementation actually bound methods to the prototype itself.
2018-03-29 23:13:03 -04:00
Jason Miller
5cfeefa86c
Fix missing header
2018-03-29 23:12:18 -04:00
Jason Miller
473a7d45a5
Add missing declare (fixes type errors on rebuild)
2018-03-29 23:11:57 -04:00
Jason Miller
ae1d323d60
fork-ts-checker-notifier-webpack-plugin doesn't use Webpack to look up files, so we need to explicitly feed it a files list via tsconfig.json.
2018-03-29 21:27:07 -04:00
Jason Miller
ac3eaeed4d
I blame myself for this @surma
2018-03-29 21:20:27 -04:00
Jason Miller
048524ce91
toggleDrawer() -> onToggleDrawer()
2018-03-29 15:49:56 -04:00
Jason Miller
c741f245a6
Use new Response(file).text() to obtain a binary string
2018-03-29 15:49:45 -04:00
Jason Miller
17e9668dd0
if (showFab)
2018-03-29 15:49:27 -04:00
Jason Miller
df8d5cfc6e
Dependency updates.
2018-03-29 15:43:26 -04:00
Jason Miller
76ceea0e52
tabs -> spaces
2018-03-29 15:43:14 -04:00
Jason Miller
5e6500d196
Use strict TypeScript, enable TSLint, update all types to work in strict mode.
2018-03-29 15:42:07 -04:00
Jason Miller
9977e5b8c6
add note about filter(Boolean)
2018-03-29 10:21:56 -04:00
Jason Miller
e347cbe413
Remove commented-out Webpack config and add explanatory comments to anything vague
2018-03-29 10:17:33 -04:00
Jason Miller
e0a10cf334
Drop custom preact alias
2018-03-29 10:15:13 -04:00
Jason Miller
83a0bd16dd
infer NODE_ENV from isProd
2018-03-27 20:52:30 -04:00
Jason Miller
720a11ccd3
Error out if required (json) configs are missing/corrupted.
2018-03-27 20:50:58 -04:00
Jason Miller
a5e2952e8c
Get rid of DeprecationWarning output filter
2018-03-27 20:48:57 -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
465d043502
let -> const
2018-03-27 20:37:25 -04:00
Jason Miller
cd4fd07519
Remove modules babelrc option
2018-03-27 20:34:36 -04:00
Jason Miller
9fa67c21ff
Convert remaining components to TypeScript.
2018-03-13 12:52:46 -04:00
Jason Miller
49c67baa0b
Add progress bar and bundle analyzer ( http://localhost:8080/report.html ) to webpack config.
2018-03-13 12:52:26 -04:00
Jason Miller
fcb8ba6bd9
Merge branch 'master' of github.com:GoogleChromeLabs/squoosh into app-skeleton
2018-03-12 23:10:11 -04:00
Jason Miller
e691ec9580
Adds an app skeleton. Still needs some work.
2018-03-12 23:03:31 -04:00
Jason Miller
619080f85a
Webpack@4 + mini-css-extract-plugin
2018-03-09 14:17:36 -05:00
Jason Miller
60eafdc3fd
interim commit
2018-03-09 13:24:30 -05:00