Created
July 9, 2016 21:14
-
-
Save TylerJPresley/94ea3aca9028f13c50a879e820a6bcdd to your computer and use it in GitHub Desktop.
Minify HTML in bundles // Aurelia (CLI/RequireJS)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import gulp from 'gulp'; | |
import changedInPlace from 'gulp-changed-in-place'; | |
import project from '../aurelia.json'; | |
import htmlMin from 'gulp-htmlmin'; | |
import {build} from 'aurelia-cli'; | |
export default function processMarkup() { | |
return gulp.src(project.markupProcessor.source) | |
.pipe(changedInPlace({ firstPass: true })) | |
.pipe(htmlMin({ collapseWhitespace: true} )) | |
.pipe(build.bundle()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment