mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2025-12-24 22:52:40 +00:00
- Updates Vitreum to v6.0.1 + some custom fixes.
- Stylesheets must be imported with `require('./sheet.less');` but can also can now share stylesheets between jsx components.
- Should eliminate a lot of security concerns with older nested dependencies.
- Changed a lot of files to make this work
- Also removes dependency on PicoRouter in favor of React-Router
20 lines
704 B
JavaScript
20 lines
704 B
JavaScript
module.exports = async (name, props={})=>{
|
|
return `
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<link href="//netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" />
|
|
<link href="//fonts.googleapis.com/css?family=Open+Sans:400,300,600,700" rel="stylesheet" type="text/css" />
|
|
<link href=${`/${name}/bundle.css`} rel='stylesheet'></link>
|
|
<link rel="icon" href="/assets/homebrew/favicon.ico" type="image/x-icon" />
|
|
<title>The Homebrewery - NaturalCrit</title>
|
|
</head>
|
|
<body>
|
|
<main id="reactRoot">${require(`../build/${name}/ssr.js`)(props)}</main>
|
|
</body>
|
|
<script src=${`/${name}/bundle.js`}></script>
|
|
<script>start_app(${JSON.stringify(props)})</script>
|
|
</html>
|
|
`;
|
|
};
|