Skip to content

Per-file compile settings #247

@chrisvanpatten

Description

@chrisvanpatten

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions