remy / inliner

Node utility to inline images, CSS and JavaScript for a web page - useful for mobile sites
MIT License
1.1k stars 165 forks source link

Expand on installation/use instructions #17

Closed mpiasta-ca closed 9 years ago

mpiasta-ca commented 11 years ago

No idea how to use inliner. Can you give more instructions? Can't find any details online.

I got so far as to install node.js server. When I run "inliner http://remysharp.com" in cmd I get one of two responses:

1- Fatal error parsing HTML - exiting :: http://remysharp.com

or...

2 - path.existsSync is now called 'fs.existsSync'.

When I try it with the other method -

var Inliner = require('inliner'); new Inliner('http://remysharp.com', function (html) { // compressed and inlined HTML page console.log(html); });

I look in console, and I get the error:

'Uncaught ReferenceError: require is not defined'

Can you expand on what I'm supposed to do after "npm install inliner" finishes...?

chevdor commented 9 years ago

Same issue here. The documented sample fails.

remy commented 9 years ago

This is fixed @ 1.0.0.