rstacruz / sinatra-assetpack

Package your assets transparently in Sinatra.
http://ricostacruz.com/sinatra-assetpack/
MIT License
541 stars 97 forks source link

Added option to include full domain name for js, css, and image files #60

Closed blakeharv closed 11 years ago

blakeharv commented 11 years ago

1) This PR adds a "host_name" config variable to the main settings.

When set to a domain name, it will prepend JS and CSS tag sources with the specified domain name. It will also add the domain name to images specified in CSS files.

By specifying this option with an environment variable, assets can be accessed locally for development environments and accessed through a CDN in production environments. For instance: using assetpack in conjunction with the active_sync gem to deploy assets to an Amazon S3 bucket.

2) Also added a force UTF-8 console output. When running rake tasks, long filenames were being output as ASCII and the rake task would fail.

dariocravero commented 11 years ago

:+1: full domain support is crucial when using a CDN

j15e commented 11 years ago

Could you rebase on master & removed 0c8e0ca as it was fixed by #67

j15e commented 11 years ago

See #71