[TASK] Add title to html (before js)

This commit is contained in:
Xaver Maierhofer 2017-11-12 00:54:50 +01:00 committed by Xaver Maierhofer
parent 72674fd6da
commit 7bfbb1b909

View File

@ -26,7 +26,8 @@ module.exports = function (gulp, plugins, config, env) {
delete require.cache[require.resolve('../../config.default')];
delete require.cache[require.resolve('../../config')];
var buildConfig = Object.assign({}, require('../../config.default')(), require('../../config')());
return '<script>window.config =' +
return '<title>' + buildConfig.siteName + ' - loading...</title>' +
'<script>window.config =' +
stringify(buildConfig)
.replace('<!-- inject:cache-breaker -->',
Math.random().toString(12).substring(7)) +