kyt-starter-universal
Advanced tools
Comparing version 0.3.0-alpha.3 to 0.3.0-alpha.4
{ | ||
"name": "kyt-starter-universal", | ||
"version": "0.3.0-alpha.3", | ||
"version": "0.3.0-alpha.4", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -26,5 +26,5 @@ { | ||
"enzyme": "2.4.1", | ||
"kyt": "0.6.0-alpha.3", | ||
"kyt": "0.6.0-alpha.4", | ||
"react-addons-test-utils": "15.3.0" | ||
} | ||
} |
@@ -12,3 +12,3 @@ | ||
const importHome = (nextState, cb) => { | ||
import('../components/Home') | ||
import(/* webpackChunkName: "home" */ '../components/Home') | ||
.then(module => cb(null, module.default)) | ||
@@ -19,3 +19,3 @@ .catch((e) => { throw e; }); | ||
const importTools = (nextState, cb) => { | ||
import('../components/Tools') | ||
import(/* webpackChunkName: "tools" */'../components/Tools') | ||
.then(module => cb(null, module.default)) | ||
@@ -22,0 +22,0 @@ .catch((e) => { throw e; }); |
@@ -40,4 +40,6 @@ | ||
root: renderToString(<RouterContext {...renderProps} />), | ||
jsBundle: clientAssets.main.js, | ||
cssBundle: clientAssets.main.css, | ||
manifestJSBundle: clientAssets['manifest.js'], | ||
mainJSBundle: clientAssets['main.js'], | ||
vendorJSBundle: clientAssets['vendor.js'], | ||
mainCSSBundle: clientAssets['main.css'], | ||
})); | ||
@@ -44,0 +46,0 @@ } else { |
@@ -1,4 +0,5 @@ | ||
/* eslint-disable prefer-template, max-len */ | ||
const getDeferScript = src => (src ? `<script defer src="${src}"></script>` : ''); | ||
export default vo => ` | ||
@@ -18,3 +19,3 @@ | ||
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/4.2.0/normalize.min.css"> | ||
${vo.cssBundle ? '<link rel="stylesheet" type="text/css" href="' + vo.cssBundle + '">' : ''} | ||
${vo.mainCSSBundle ? '<link rel="stylesheet" type="text/css" href="' + vo.mainCSSBundle + '">' : ''} | ||
@@ -26,3 +27,5 @@ <title>Universal React Starter Kyt</title> | ||
<div id="root"><div>${vo.root}</div></div> | ||
<script src="${vo.jsBundle}"></script> | ||
${getDeferScript(vo.manifestJSBundle)} | ||
${getDeferScript(vo.vendorJSBundle)} | ||
${getDeferScript(vo.mainJSBundle)} | ||
</body> | ||
@@ -29,0 +32,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
510808
241