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",