Skip to content
This repository has been archived by the owner on Oct 31, 2018. It is now read-only.

Make resources overridable #71

Open
sergiomichels opened this issue Jan 29, 2014 · 0 comments
Open

Make resources overridable #71

sergiomichels opened this issue Jan 29, 2014 · 0 comments

Comments

@sergiomichels
Copy link

A good option is to set an id to the resources of this plugin, like JQuery UI does, so the developer can override them. This is really useful for CSS changes, for example.

modules = {

        /* Bootstrap definitions without less (if resource processing is switched off) */
        'bootstrap' {
                resource id: 'bootstrap-jquery', url: [dir: 'bootstrap/js/tests/vendor',file: 'jquery.js']
                resource id: 'bootstrap-js',url: [dir: 'bootstrap/dist/js',                file: 'bootstrap.js']
                resource id: 'bootstrap-css',url: [dir: 'bootstrap/dist/css',                file: 'bootstrap.css']
        }
//application modules
modules = {
  overrides {
    'bootstrap' {
      resource id: 'bootstrap-css', url: [dir: 'css', file: 'my-custom-awesome-bootstrap.css']
    }
  }
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant