UNPKG

582 BJavaScriptView Raw
1const path = require('path');
2
3const html = settings => {
4 const workflowTemplate = path.join(__dirname, './index.html');
5 const projectTemplate = path.join(settings.app(), 'index.html');
6
7 const workflowFavicon = path.join(__dirname, './favicon.ico');
8 const projectFavicon = path.join(settings.app(), 'favicon.ico');
9
10 const config = {
11 template: settings.asset(workflowTemplate, projectTemplate),
12 favicon: settings.asset(workflowFavicon, projectFavicon),
13 title: settings.title(),
14 chunksSortMode: 'dependency'
15 };
16
17 return config;
18};
19
20module.exports = html;