gulp-html-nimedev
Optimize html files and copy in a new folder
Installation
$ npm install gulp-html-nimedev
Usage
In gulpfile.js
// Require the moduleconst htmlTask = // Set options object for htmlTask functionconst options = src: 'src/index.html' dest: 'dist' tmp: 'tmp' // Used to replace script declaration in index.html file replace: 'js': 'assets/js/dep.js' 'assets/js/app.js' // Create a gulp task to optimize index.html filegulp
Note: src and dest in options objects follow the same rules of gulp.src() and gulp.dest() arguments