gulp-include-source
Gulp plugin to include scripts and styles into your HTML files automatically.
Install
Install with npm
npm install gulp-include-source --save-dev
Example
gulpfile.js
gulp;
index.html
<!-- include:css(style/**/*.css) --> <!-- include:js(list:vendorList) --> <!-- include:js(script/**/*.js) -->
scriptList
bower_components/jquery/dist/jquery.js
bower_components/angular/angular.js
Result:
API
includeSources(options)
options.cwd
Type: String
Base directory from where the plugin will search for source files.
options.scriptExt
Type: String
When available, will override script extension in resulted HTML code.
options.styleExt
Type: String
When available, will override style extension in resulted HTML code.
License
MIT © André Gil