grunt-bundle
Use import syntax to import file or folder in javascript or css
Getting Started
Overview
this plugin support absolute path and relative to import file or folder
; //relative ; //absolute ; ;
Options
options.separator
Type: String
Default value: ', '
A string value that is used to do something with whatever.
options.punctuation
Type: String
Default value: '.'
A string value that is used to do something else with whatever else.
Usage Examples For javascript
grunt;
src/js/main.js
; //import index.js if exist in router folder otherwise will import all from folder angular;
src/js/router/index.js
{ ; //import single file ; //import all files from directory [src/js/router/directives] if index.js not exist module; }angular
src/js/router/provider/route.js
; //import single file from absolute path module
src/js/services/common/emitter.js
module
src/js/router/directives/view.js
module
src/js/router/directives/route-nav.js
module
Usage Examples For CSS
grunt;
src/css/main.css
; //; //; //
Usage Extra options
Tasks example
grunt;
Watch example
grunt;