UNPKG

711 BJavaScriptView Raw
1const validateInject = require('../React/validate-inject');
2
3module.exports = (options = {}) => {
4 const {
5 injectCache,
6
7 localeId,
8 localeFileMap,
9 defaultLocaleId,
10
11 filemap,
12 entrypoints,
13 compilation,
14
15 needInjectCritical
16 } = options;
17
18 return validateInject({
19 injectCache,
20
21 localeId,
22 localeFileMap,
23 defaultLocaleId,
24
25 filemap,
26 entrypoints,
27 compilation,
28
29 title: process.env.KOOT_PROJECT_NAME,
30 metas: '',
31 reactHtml: '<!-- REACT ROOT -->',
32 stylesHtml: '',
33 reduxHtml: '',
34
35 needInjectCritical
36 });
37};