KickstartWithBootstrap icon indicating copy to clipboard operation
KickstartWithBootstrap copied to clipboard

Make resources overridable

Open sergiomichels opened this issue 11 years ago • 0 comments

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']
    }
  }
}

sergiomichels avatar Jan 29 '14 17:01 sergiomichels