gulpfile.js
/** Copy html from pages to dist*/
Copy html from pages to dist
Copy html from pages to dist
function createPageHTML() {
  return src('./src/pages/**/*.html')
    .pipe(plugins.newer('./dist'))
    .pipe(plugins.if(mode === 'production', plugins.htmlmin({ collapseWhitespace: true })))
    .pipe(dest('./dist/pages'));
}
function createPageHTML ( ) { return src ( './src/pages/**/*.html' ) . pipe ( plugins . newer ( './dist' ) ) . pipe ( plugins . if ( mode === 'production' , plugins . htmlmin ( { collapseWhitespace : true } ) ) ) . pipe ( dest ( './dist/pages' ) ) ; }
Copy html from pages to dist
Copy html from pages to dist