Commit Graph

15 Commits

Author SHA1 Message Date
John Ericson
83edb2bf54 feat: add iesafe option
Fixes #134
2017-04-05 09:10:46 +01:00
Remy Sharp
bacf080d09 fix: add usage for preserve comments
And remove the `-c` shortcut as it'll be a lesser used option
2016-12-31 16:36:46 +00:00
Remy Sharp
2f6cfc15be docs: fix help -H sample 2016-06-27 18:12:42 +01:00
Remy Sharp
072c387b63 docs: tidy help 2016-04-19 11:43:28 +01:00
Eugene Park
825ec601dc chore: renamed flag to --skip-absolute-urls 2016-04-06 08:02:46 +00:00
Eugene Park
15e6b0dab6 chore: renamed flag to --same-origin-only 2016-02-20 23:59:30 +00:00
Eugene Park
353a2a92cb feat: support for only inlining local files 2016-02-20 10:45:46 +00: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
6e46680fbd feat: support plain HTML as a source
Supports both HTML being passed as the first argument to the inliner function (through various detection), but also on the CLI supports HTML being piped, via `cat foo | inliner`.

Fixes #66
Closes #73
2015-11-26 10:24:12 +00:00
Hubert SABLONNIÈRE
747836d3e0 feat: inline video (and their poster image attribute)
Video (and their poster) inlining is disabled by default.
It sounds crazy but for videos with a "reasonable length", it works just fine.
2015-09-22 00:59:22 +02: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
bf1860271f feat: detect encoding
Using charset and jschardet allows us to detect the encoding, whilst still supporting allowing the user to override.

Technique via: http://stackoverflow.com/questions/12326688/node-js-scrape-encoding/18712021#18712021

Fixes #60
2015-08-23 22:43:14 +01:00
Manolis Stamatogiannakis
715678cfaa feat: allow user to specific encoding
Support for manually specifying the source encoding using iconv-lite to convert to utf-8 from the specified encoding.
2015-08-23 22:41:55 +01:00
Remy Sharp
e046c3739a feat: auto-update + help 2015-07-27 22:24:38 +01:00