10 Commits

Author SHA1 Message Date
Rihards Gravis
2d40001044 - Update dependencies
- Update svgo promise
- Update UglifyJS to v3
- Update deprecated `Buffer()` use
- Fix `headers` 404 test
2020-01-07 13:07:00 +02:00
John Ericson
83edb2bf54 feat: add iesafe option
Fixes #134
2017-04-05 09:10:46 +01:00
Remy Sharp
bd0b7c1be3 fix: job counts (was missing JS + inline styles) 2016-04-19 11:09:38 +01:00
Remy Sharp
4ed1b39529 feat: support custom headers
Via cli using `-H user-agent="inliner custom"`

Fixes #69
Closes #59
2016-01-18 22:12:52 +00:00
Ricardo Pescuma Domenecci
b025f4b0b6 feat: add support for inlining .min js
Closes #75
2015-11-26 10:29:27 +00:00
Remy Sharp
c66d95deda feat: warn out when failing to get url on cli
Also cleaned up js uglify process as it was failing the test source.body when in fact there was a body, it was just empty.
2015-08-29 15:02:34 +01:00
Sam Nguyen
8af810faa7 fix: replace with empty string if error in GET
Fixes #61

It seems to work, but I'm not sure if it's a clean way of doing it. Let
me know what you think @remy.
2015-08-28 20:20:52 -07:00
Remy Sharp
9904b6b334 feat: compress SVG using SVGO
Fixes #58

Compresses inline SVG using SVGO, and compresses CSS background SVG images by making them data URLs (using text/svg+xml mime).

Adds CLI (and lib) option: --nosvg which avoids using SVGO for compression (as it can on occassion mess up).

Also includes a refactor of the code to organise the files a little better (allowing for further inlined elements to be added).
2015-08-26 22:43:40 +01:00
Remy Sharp
593a2749cf fix: file based scripts
Parser was getting a buffer, so it needed to be coersed to a string.

Fixes #52
2015-07-28 14:49:10 +01:00
Remy Sharp
743018c1a0 feat: scripts and compression 2015-07-27 16:00:56 +01:00