1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Disable HTMLmin in dev and fix bundle dependency

This commit is contained in:
MrTimscampi 2020-02-28 16:18:05 +01:00
parent 5cea4c9231
commit 591f2ff816
2 changed files with 3 additions and 2 deletions

View file

@ -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());
}