1.3.1 • Published 8 years ago

gulp-html-nimedev v1.3.1

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

gulp-html-nimedev

npm

Optimize html files and copy in a new folder

Installation

$ npm install gulp-html-nimedev

Usage

In gulpfile.js

// Require the module
const htmlTask = require('gulp-html-nimedev')

// Set options object for htmlTask function
const 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 file
gulp.task('html', () => htmlTask(options))

Note: src and dest in options objects follow the same rules of gulp.src() and gulp.dest() arguments

Changelog

License

1.3.1

8 years ago

1.3.0

8 years ago

1.2.0

8 years ago

1.1.3

8 years ago

1.1.2

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.0

8 years ago