From 591f2ff8166c2184ecb3a15f126de0c336de7d9f Mon Sep 17 00:00:00 2001 From: MrTimscampi Date: Fri, 28 Feb 2020 16:18:05 +0100 Subject: [PATCH] Disable HTMLmin in dev and fix bundle dependency --- gulpfile.js | 4 ++-- src/scripts/site.js | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 539db09ce5..54b94a5ae0 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -24,7 +24,7 @@ const sass = require('gulp-sass'); sass.compiler = require('node-sass') -if(mode.production()) { +if (mode.production()) { var webpack_config = require('./webpack.prod.js'); } else { var webpack_config = require('./webpack.dev.js'); @@ -94,7 +94,7 @@ function css() { function html() { return src(['src/**/*.html', '!src/index.html'], {base: './src/'}) - .pipe(htmlmin({ collapseWhitespace: true })) + .pipe(mode.production(htmlmin({ collapseWhitespace: true }))) .pipe(dest('dist/')) .pipe(browserSync.stream()); } diff --git a/src/scripts/site.js b/src/scripts/site.js index 67807c1bcd..1d82853256 100644 --- a/src/scripts/site.js +++ b/src/scripts/site.js @@ -722,6 +722,7 @@ var AppInfo = {}; }, bundles: { bundle: [ + "document-register-element", "fetch", "flvjs", "jstree",