OverZealous / cdnizer

Node module for replacing local links with CDN links, includes fallbacks and customization
MIT License
52 stars 24 forks source link

Add CLI #5

Closed menelaos closed 9 years ago

menelaos commented 10 years ago

It would be cool if it was possible to use cdnizer from the command line, i.e.

cdnizer no-cdn.html > cdn.html

That way it could easily be integrated into non-js build systems.

OverZealous commented 10 years ago

I would love to be able to do this, but the configuration for cdnizer is too complex to make sense using it on the command line. It isn't very useful without, at the least, an array of potential replacements.

menelaos commented 10 years ago

Would it make sense to have a cdnizer configuration file (by default e.g. .cdnizerrc.json) in which one could store the desired option values?

cdnizer -c myconfig.json no-cdn.html > cdn.html
OverZealous commented 9 years ago

Merged in PR#6, closing this.