Skip to content
Snippets Groups Projects
Unverified Commit e1aa1520 authored by Xaver Maierhofer's avatar Xaver Maierhofer
Browse files

[BUGFIX] Gulp html inject order

parent d29bb313
Branches
Tags
No related merge requests found
...@@ -20,6 +20,7 @@ var stringify = function (obj) { ...@@ -20,6 +20,7 @@ var stringify = function (obj) {
module.exports = function (gulp, plugins, config, env) { module.exports = function (gulp, plugins, config, env) {
return function html() { return function html() {
return gulp.src(env.production() ? config.build + '/*.html' : 'html/*.html') return gulp.src(env.production() ? config.build + '/*.html' : 'html/*.html')
.pipe(env.production(plugins.kyhInlineSource({ compress: false })))
.pipe(plugins.realFavicon.injectFaviconMarkups(JSON.parse(fs.readFileSync(config.faviconData)).favicon.html_code)) .pipe(plugins.realFavicon.injectFaviconMarkups(JSON.parse(fs.readFileSync(config.faviconData)).favicon.html_code))
.pipe(plugins.inject(gulp.src(['config.js']), { .pipe(plugins.inject(gulp.src(['config.js']), {
removeTags: true, removeTags: true,
...@@ -46,7 +47,6 @@ module.exports = function (gulp, plugins, config, env) { ...@@ -46,7 +47,6 @@ module.exports = function (gulp, plugins, config, env) {
return buildConfig.siteName; return buildConfig.siteName;
} }
})) }))
.pipe(env.production(plugins.kyhInlineSource({ compress: false })))
.pipe(plugins.cacheBust({ .pipe(plugins.cacheBust({
type: 'timestamp' type: 'timestamp'
})) }))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment