Commit Graph

107 Commits

Author SHA1 Message Date
Remy Sharp
743018c1a0 feat: scripts and compression 2015-07-27 16:00:56 +01:00
Remy Sharp
96ac1b7ac8 fix: background images in CSS 2015-07-27 14:54:46 +01:00
Remy Sharp
308aaa6be2 chore: remove submodule 2015-07-27 14:32:33 +01:00
Remy Sharp
eabd7c5441 fix: simple depth imports working 2015-07-27 14:26:25 +01:00
Remy Sharp
d6d13c83e4 fix: use own cli parser
minimist was eating the args after the flags, like `inliner -d <url>` was becoming `debug=<url>`, so I've added my own simple implementation that works well enough.
2015-07-27 13:22:12 +01:00
Remy Sharp
96d7bf2fe3 fix: relative urls 2015-07-26 23:05:40 +01:00
Remy Sharp
8dfea139c8 feat: removing comments + white space 2015-07-26 23:00:44 +01:00
Remy Sharp
50bd5a0f17 feat: CSS links working 2015-07-26 22:37:33 +01:00
Remy Sharp
16944df764 refactor: HTML pulling down, events, images 2015-07-26 16:44:49 +01:00
Remy Sharp
c940480c48 0.1.16 2015-07-24 21:29:19 +01:00
Remy Sharp
2343fb5fdd 0.1.15 2015-07-24 21:29:19 +01:00
Remy Sharp
e628109750 Merge pull request #46 from jpotter/master
Fix calls to existsSync; fix non-zero exit code on error
2015-02-25 11:52:33 +00:00
Build Server
4fb1190c41 Non-zero exit on failure, so that scripts using inliner know to halt 2015-02-24 12:10:26 -05:00
Build Server
77cfbd6e49 Fix path.existsSync calls 2015-02-24 12:02:31 -05:00
Remy Sharp
60d7cd7de6 Merge pull request #41 from mccartney/master
Fixes #13 (in upstream)
2014-07-22 17:01:41 +01:00
Grzegorz Oledzki
2f6a3bb1b3 Fixes #13 (in upstream) 2014-07-22 17:11:09 +02:00
Remy Sharp
d86313172e Merge pull request #38 from TJKoury/patch-1
Change for null cases
2014-05-31 23:32:38 +01:00
TJKoury
e3cb626ce9 Change for null cases
In the case that this.src is null, need to go ahead and handle it gracefully.  Rather let url.js handle the null case than try to anticipate all the ways it could go wrong.
2014-05-31 13:49:15 -04:00
Remy Sharp
574f2c3ed0 Merge pull request #36 from jorendorff/master
Support relative <img src=> URLs.
2014-01-03 01:47:24 -08:00
Jason Orendorff
4e5d0b6eca Support relative <img src=> URLs.
img.src is an absolute URL. jsdom's img.src getter produces this URL by
resolving the <img src=> attribute value relative to the document's URL --
which is bogus unless we explicitly pass a correct URL to jsdom.env() to
start with.
2013-11-22 16:46:15 -06:00
Remy Sharp
909b96323d Merge pull request #30 from Andyroid1978/html_parsing_error_fix
Update inliner.js
2013-08-02 02:13:15 -07:00
Andyroid1978
40b47f48c5 Update inliner.js
Fix compatibility error with recent version jsdom module (mine is  jsdom@0.8.2): changed jsdom.env number of parameters.
2013-07-31 16:05:41 +02:00
Remy Sharp
c8ffae5579 Merge pull request #28 from jpalardy/patch-1
Update package.json
2013-07-15 02:03:59 -07:00
Jonathan Palardy
7ef02df8d9 Update package.json
jsdom wasn't working on "latest" (0.7.0), so I pin it to 0.6.5
2013-07-14 23:53:51 -07:00
Remy Sharp
4f1af5c7d6 error handling for a) missing body in scripts, b) jsdom failing to parse HTML 2012-01-02 09:31:59 +00:00
Remy Sharp
7e30780fe4 fixed exception where comments could not be found 2011-12-31 14:21:09 +00:00
Remy Sharp
229d4f146b moved to commander for options and fixed up JS parsing errors 2011-12-30 17:43:06 +00:00
Remy Sharp
8a5f50fd0d bump version 2011-11-29 16:18:51 +00:00
Remy Sharp
aa2d63aefe fixed HTML encoding when it should not have been happening 2011-11-29 16:18:40 +00:00
Remy Sharp
a81db9687f bump version 2011-11-29 16:08:21 +00:00
Remy Sharp
ee87478e93 fix missing some closing script in scripts 2011-11-29 16:07:59 +00:00
Remy Sharp
2e76545087 bump 2011-11-06 00:35:43 +00:00
Remy Sharp
801e7ece22 updated package for 0.6 support 2011-11-06 00:34:47 +00:00
remy
ffc6431b0e Merge branch 'master' of github.com:remy/inliner 2011-06-22 18:39:36 +01:00
remy
e1ae854e67 fixed defaults being overwritten 2011-06-22 18:39:17 +01:00
remy
01dd4c743b Merge branch 'master' of github.com:remy/inliner 2011-06-22 18:21:37 +01:00
remy
bd8890c6f4 + license 2011-06-22 18:21:24 +01:00
remy
291182beec fixed cache on inliner when used as a module 2011-06-11 18:31:00 +01:00
remy
68a0bc8e88 Fixed style elements with direct descendant selectors being stripped, ie. body > * { foo: bar} was being converted to: body*{foo:bar} - missing '>'. 2011-06-11 17:51:04 +01:00
remy
78204a7f21 Fixed bug where printf control characters were causing JS inlining to break, i.e. console.log('12%d') => 12NaN instead of compressed to 12%d - was affecting people including jQuery minified. 2011-06-11 17:16:08 +01:00
remy
52b8f70a58 Fixed situation where minified inline JavaScript includes a <script> tag - needs to be escaped. 2011-06-11 16:28:59 +01:00
remy
c418d6f32c typo in readme 2011-06-11 12:56:58 +01:00
remy
fb9991d679 Forgot CSS images in the no image options 2011-06-11 12:54:08 +01:00
remy
c64afcc42f Merge branch 'master' of github.com:remy/inliner 2011-06-11 12:50:03 +01:00
remy
fbee9f9534 Updated help with details of command line options and how to include as a submodule. 2011-06-11 12:49:51 +01:00
remy
7c9b89f0a9 pre white space now remains intact, inliner executable supports more options on command line - in addition to optionally not base64 encoding images. 2011-06-11 12:41:19 +01:00
Remy Sharp
7827c4c7dc Merge pull request #9 from gregersrygg/master
Strip whitespace in css url()
2011-06-11 04:17:20 -07:00
remy
1417f2d28e tweaking package versions 2011-06-11 12:09:50 +01:00
Gregers Gram Rygg
5ab47ddfae Support whitespace for css-urls according to spec http://www.w3.org/TR/CSS21/syndata.html#uri 2011-06-09 16:06:20 +02:00
remy
10ec00bdd0 not re-requested assets, and trying to make use of a cache, and better command line options 2011-05-30 13:38:13 +01:00