fraserxu / fraserxu/gulp-html2js
Anyway to use the htmlmin option?
- Dominant language
- JavaScript
- Stars
- 38
- Forks
- 24
- PR merge metrics
- No merged PRs in 30d
Description
I have the following task
``` js
return gulp.src( [
webRoot + '**/*.html'
] )
.pipe( $.debug( {
title: 'localTemplates'
} ) )
.pipe( $.html2js( 'templates.js', { //not sure what temp
adapter: 'angular',
base: 'src/main/static/templates',
name: 'dander',
htmlmin: {
collapseBooleanAttributes: true,
collapseWhitespace: true,
removeAttributeQuotes: true,
removeComments: true,
removeEmptyAttributes: true,
removeRedundantAttributes: true,
removeScriptTypeAttributes: true,
removeStyleLinkTypeAttributes: true
}
} ) )
.pipe( gulp.dest( distRoot + '/templates' ) );
```
After the task runs, the html is unchanged. Am I doing something wrong?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.