fraserxu / fraserxu/gulp-html2js

Anyway to use the htmlmin option?

Open
#23 1 comment 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.