Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Per-file compile settings #247

Open
chrisvanpatten opened this issue Mar 12, 2013 · 1 comment
Open

Per-file compile settings #247

chrisvanpatten opened this issue Mar 12, 2013 · 1 comment

Comments

@chrisvanpatten
Copy link

It'd be nifty if you could set per-file settings in your YML file. For example:

javascript_compressor: uglifier
compress_assets: on

javascripts:
  script:
    - vendor/javascripts/bootstrap/bootstrap.js
    - app/assets/javascripts/script.js
  payment:
    compress_assets: off
    - vendor/javascripts/jquery.payment/*.js
    - app/assets/javascripts/payment.js

I imagine this is possible now with multiple YAML config files, but I think it'd be cleaner if you could do this all in one place. Any setting at the file level would override a global setting, so there the script.js file inherits the global settings but payment.js will have its own compress_assets setting.

Just a thought!

@justindarc
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants