gulp-extractfiles

1.0.0 • Public • Published

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.

Package Sidebar

Install

npm i gulp-extractfiles

Weekly Downloads

0

Version

1.0.0

License

ISC

Last publish

Collaborators

  • heinrich-adams