Commit Graph

240 Commits

Author SHA1 Message Date
Remy Sharp
93ecac768c style: lint fixes 2016-04-19 11:16:44 +01:00
Remy Sharp
32b9ba57ad feat: enhance and clean -v output 2016-04-19 11:10:19 +01:00
Remy Sharp
bd0b7c1be3 fix: job counts (was missing JS + inline styles) 2016-04-19 11:09:38 +01:00
Remy Sharp
d590b69ab4 feat: show status if output redirected 2016-04-19 11:09:01 +01:00
Remy Sharp
e5b35fe352 fix: don't try to encode SVG if there's no body
Fixes #95
2016-04-19 11:08:28 +01:00
Eugene Park
825ec601dc chore: renamed flag to --skip-absolute-urls 2016-04-06 08:02:46 +00:00
Remy Sharp
7459b98ef8 chore: add pre-commit hooks 2016-04-01 13:30:11 +01:00
Remy Sharp
378542d478 fix: move tap-only to devdeps
Fixes #92
2016-04-01 13:23:49 +01:00
Remy Sharp
32b755f3b7 chore: linting fixes 2016-02-28 10:39:01 +00:00
Remy Sharp
fedbc55cdb fix: always strip querystring in local requests
Fixes #86
Fixes #84
2016-02-28 10:38:57 +00:00
Remy Sharp
c0a632b24b test: improve coverage 2016-02-28 09:51:10 +00:00
Remy Sharp
51f0ca07ba fix: support favicons
Fixes #87
2016-02-28 09:50:05 +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
7c33ee7d23 chore: merge branch 'feature/headers' 2016-01-18 22:15:34 +00:00
Remy Sharp
cfcb0beb0e chore: merge branch 'fix/meta-tags' 2016-01-18 22:15:24 +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
Remy Sharp
9b607778e0 fix: metatags being removed on non-utf8
Fixes #78
2016-01-18 21:04:55 +00:00
Remy Sharp
0ea78f662d test: check for meta http-equiv 2016-01-18 21:04:31 +00:00
Remy Sharp
e6c4a705a2 chore: typo in contrib file 2016-01-18 20:55:41 +00:00
Remy Sharp
c6073e9e0a test: add meta-data stripping test 2016-01-18 20:54:44 +00:00
Remy Sharp
59fffcc6ee docs: include details about fixture opts 2016-01-18 20:40:10 +00:00
Remy Sharp
5ceed814d3 Merge pull request #81 from stucox/feature/style-attrs
Add support for inlining assets in `style` attributes
2016-01-18 16:16:26 +00:00
Stu Cox
6c9bba2adb feat: add support for inlining assets in style attributes
Fixes #65
2016-01-18 11:49:48 +00:00
Stu Cox
14105b5c14 style: appease JSCS requireEarlyReturn rule 2016-01-18 10:37:55 +00:00
Remy Sharp
a95d94d320 docs: use absolute url for contributing
[skip ci]
2015-11-26 19:55:00 +00:00
Remy Sharp
86139f83b3 docs: update contributing link
[skip ci]
2015-11-26 19:52:28 +00:00
Remy Sharp
5d7c439d92 test: don't touch non-script scripts 2015-11-26 19:49:31 +00:00
Remy Sharp
a2a3e95607 fix: don't uglify non-js script elements
i.e. when a script is being used for a template holder. So we use the `type` attribute check to be sure.

Fixes #68
2015-11-26 19:46:25 +00:00
Remy Sharp
0917c29ad4 chore: merge branch 'master' of github.com:remy/inliner 2015-11-26 10:29:55 +00:00
Ricardo Pescuma Domenecci
e32fc0abc7 test: added tests for inlinemin and nocompress js 2015-11-26 10:29:27 +00:00
Ricardo Pescuma Domenecci
b025f4b0b6 feat: add support for inlining .min js
Closes #75
2015-11-26 10:29:27 +00:00
Ricardo Pescuma Domenecci
fb18abf48f chore: added editorconfig 2015-11-26 10:29:27 +00:00
Ricardo Pescuma Domenecci
fecd9b4ddb chore: added idea folder to .gitignore 2015-11-26 10:29:27 +00:00
dotob
82fb14c11f fix: strip img query string from local files
When ? was left in url and parsing a local file.

Fixes #72
2015-11-26 10:28:43 +00:00
Remy Sharp
5b7fc96bc3 test: remove iojs and add node 4 2015-11-26 10:24:13 +00:00
Remy Sharp
fbff26cd11 chore: fix linting issues 2015-11-26 10:24:13 +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
Felix Akkermans
cbcd398182 fix: resolving already resolved HTTP links in file
Also includes tests
2015-11-26 10:24:12 +00:00
Remy Sharp
d9b53c96b1 chore: Merge branch 'feature/inliner-string' 2015-11-15 10:02:12 +00:00
Remy Sharp
dec04197cf test: remove iojs and add node 4 2015-11-15 10:00:38 +00:00
Remy Sharp
de372bb6b0 chore: fix linting issues 2015-11-15 10:00:17 +00:00
Remy Sharp
45c4d752dd 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-15 09:53:16 +00:00
Felix Akkermans
7a393d0f35 fix: resolving already resolved HTTP links in file
Also includes tests
2015-11-13 00:05:20 +01:00
Remy Sharp
e9aa76e071 Merge pull request #57 from hsablonniere/videos
feat: inline video (and their poster image attribute)
2015-10-15 17:10:02 +01: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
2f760710b1 docs: add code of conduct
[skip ci]
2015-09-12 18:02:15 +01: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