mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2025-04-20 23:16:13 -04:00
Replace debugmode in build task
This commit is contained in:
parent
725fb96408
commit
3b4784e8eb
2 changed files with 6 additions and 4 deletions
|
@ -37,11 +37,9 @@
|
||||||
<!-- Because this project uses vulcanize this should be your only html import
|
<!-- Because this project uses vulcanize this should be your only html import
|
||||||
in this file. All other imports should go in elements.html -->
|
in this file. All other imports should go in elements.html -->
|
||||||
<link rel="import" href="elements/elements.html" async>
|
<link rel="import" href="elements/elements.html" async>
|
||||||
<!-- build:js -->
|
|
||||||
<script>
|
<script>
|
||||||
window.debug = true;
|
window.debug = true;
|
||||||
</script>
|
</script>
|
||||||
<!-- endbuild -->
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body class="fullbleed layout vertical" loading>
|
<body class="fullbleed layout vertical" loading>
|
||||||
|
|
|
@ -19,6 +19,7 @@ var inlinesource = require('gulp-inline-source');
|
||||||
var proxy = require('proxy-middleware');
|
var proxy = require('proxy-middleware');
|
||||||
var url = require('url');
|
var url = require('url');
|
||||||
var minifyHTML = require('gulp-minify-html');
|
var minifyHTML = require('gulp-minify-html');
|
||||||
|
var replace = require('gulp-replace');
|
||||||
|
|
||||||
// var ghPages = require('gulp-gh-pages');
|
// var ghPages = require('gulp-gh-pages');
|
||||||
|
|
||||||
|
@ -91,6 +92,7 @@ var optimizeHtmlTask = function(src, dest) {
|
||||||
spare: true
|
spare: true
|
||||||
})))
|
})))
|
||||||
.pipe($.if('*.html', inlinesource()))
|
.pipe($.if('*.html', inlinesource()))
|
||||||
|
.pipe(replace('window.debug = true;', ''))
|
||||||
// Output files
|
// Output files
|
||||||
.pipe(gulp.dest(dest))
|
.pipe(gulp.dest(dest))
|
||||||
.pipe($.size({
|
.pipe($.size({
|
||||||
|
@ -193,7 +195,9 @@ gulp.task('vulcanize', function() {
|
||||||
inlineCss: true,
|
inlineCss: true,
|
||||||
inlineScripts: true
|
inlineScripts: true
|
||||||
}))
|
}))
|
||||||
.pipe(minifyHTML({ empty: true }))
|
.pipe(minifyHTML({
|
||||||
|
empty: true
|
||||||
|
}))
|
||||||
.pipe(gulp.dest(dist('elements')))
|
.pipe(gulp.dest(dist('elements')))
|
||||||
.pipe($.size({
|
.pipe($.size({
|
||||||
title: 'vulcanize'
|
title: 'vulcanize'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue