[BUGFIX] Gulp html inject order
This commit is contained in:
parent
d29bb31311
commit
e1aa152055
@ -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) {
|
|||||||
return buildConfig.siteName;
|
return buildConfig.siteName;
|
||||||
}
|
}
|
||||||
}))
|
}))
|
||||||
.pipe(env.production(plugins.kyhInlineSource({ compress: false })))
|
|
||||||
.pipe(plugins.cacheBust({
|
.pipe(plugins.cacheBust({
|
||||||
type: 'timestamp'
|
type: 'timestamp'
|
||||||
}))
|
}))
|
||||||
|
Loading…
Reference in New Issue
Block a user