gruntjs - How to include only specific parts of UI Bootstrap using Grunt -
i'm using accordion, tooltips , transition components of ui bootstrap.
i can create custom build online tool on ui bootstrap website, create minified , non-minified js file containing components selected, without overhead.
however, don't want use online tool compile custom version of ui bootstrap, instead want compile own version locally, preferably using tools use; bower, grunt , npm.
so question: how can create own version of ui bootstrap locally?
bower install angular-ui-bootstrap, , calling grunt build in bower_components/angular-ui-bootstrap creates ui bootstrap build includes all modules, there's way same subset of modules, not figure out.
it can done using following command
grunt build:modulename1:modulename2:modulename3....:modulenamen for example if require build contain tabs , buttons module , grunt command like
grunt build:tabs:buttons the generated files present in dist folder
for list of module names , check folder names in src folder
the documentation sparse , if check gruntfile.js , register build task , mention how build modules selectively
Comments
Post a Comment