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

Why is minified JS not inlined by default? #164

Open amv opened 7 years ago

amv commented 7 years ago

What is the initial intended purpose of this tool which brings about the rationale of the current default behaviour?

To me it seems a bit odd that the default behaviour is not to just inline everything.

eltonc8 commented 6 years ago

edited I had the same problem. I think it should be inlined by default.

For those wondering, this can be done wiith passing in {inlinemin: true} before the cb

nigelnquande commented 6 years ago

I'm having the same issue with my *.min.js and *.min.css files. There's no command flag for telling inliner to inline these files.

Note: Changing the resource links to exclude .min solves the issue, but renaming files and editing code for this is inconvenient.