1.0.0 • Published 8 years ago

gulp-extractfiles v1.0.0

Weekly downloads
1
License
ISC
Repository
github
Last release
8 years ago

extractfiles

Gulp plugin, extract all script and css files with a html file, cancatenates and minimize them according to the gulp-processhtml directives.

Usage

gulp.src('./public/accordion-navigation.html').pipe(extract({js:true,jsDestination:'./dist/_common/',encoding:'utf8'},logger));

gulp.src('./public/accordion-navigation.html').pipe(extract({js:false,cssDestination:'./dist/_common/',encoding:'utf8'},logger));
options =
{
    js : (true extract js files, otherwise extract css files,
    cssDestination : destination folder for css file,
    jsDestination : destination folder for js file,
    encoding: default is utf8
}

Test

To test call node test.js.

Tools

Created with Nodeclipse (Eclipse Marketplace, site)

Nodeclipse is free open-source project that grows with your contributions.