Remy Sharp
ae44accdd0
tests: update for new parsing
2016-05-22 22:27:10 +01:00
Remy Sharp
734dafb136
fix: headers use colons
...
The headers option was supposed to mirror cURL, but they were wrongly splitting on `=` and not `:`. This fix updates.
2016-05-22 22:25:50 +01:00
Remy Sharp
9acbbcb351
fix: loose match on at-imports
...
Fixes #98
2016-05-22 22:25:19 +01:00
Remy Sharp
ba67ef1083
fix: when in debug, output verbose line-by-line
2016-05-22 22:24:37 +01:00
Remy Sharp
e61f7bd783
fix: header cli parsing
2016-05-22 15:13:01 +01:00
Remy Sharp
253a3173cd
fix: wrap all CSS data urls in quotes
...
This ensures that if SVG is used as a background, it doesn't get corrupted.
Fixes #97
Fixes #96
2016-05-22 14:45:52 +01:00
Remy Sharp
cc9cc826ec
chore: Merge branch 'ueokande-fix_forced_xml_mode'
...
* ueokande-fix_forced_xml_mode:
fix: detect xml-mode with XML declaration
2016-05-21 16:25:27 +01:00
Shin'ya Ueoka
925c99e2c3
fix: detect xml-mode with XML declaration
2016-05-17 22:36:54 +09:00
Remy Sharp
0ddff8886f
fix: local content should use fs for inlining
...
The issue here was that although the "simple" detection was in place if the URL looked like HTML (i.e. has an angle bracket in it), but it didn't ever set the `isFile` flag.
This fix corrects this, but also swallows ENOENT errors, to mirror >=400 response codes being swallowed (i.e. return an empty body).
Fixes #89
2016-04-20 21:42:48 +01:00
Remy Sharp
0840c84140
chore: skip test dir in npm pkg
2016-04-20 09:46:36 +01:00
Remy Sharp
8caf2c6693
chore: merge branch 'feature/clean-progress-output'
...
* feature/clean-progress-output:
style: lint fixes
feat: enhance and clean -v output
fix: job counts (was missing JS + inline styles)
feat: show status if output redirected
fix: don't try to encode SVG if there's no body
2016-04-20 09:42:31 +01:00
Remy Sharp
072c387b63
docs: tidy help
2016-04-19 11:43:28 +01:00
Remy Sharp
731e7e9351
chore: merge branch 'feature/local-only'
...
* 'feature/local-only' of https://github.com/eigenuser/inliner :
chore: renamed flag to --skip-absolute-urls
chore: renamed flag to --same-origin-only
feat: support for only inlining local files
2016-04-19 11:19:50 +01:00
Remy Sharp
0c0c063647
chore: ignore tmp folders
2016-04-19 11:19:40 +01:00
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