Skip to content
This repository has been archived by the owner on Jul 10, 2024. It is now read-only.

Commit

Permalink
[TASK] Add title to html (before js)
Browse files Browse the repository at this point in the history
  • Loading branch information
xf- committed Nov 12, 2017
1 parent 72674fd commit 7bfbb1b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gulp/tasks/html.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)) +
Expand Down

0 comments on commit 7bfbb1b

Please sign in to comment.