@micro-frontend-react/core
Advanced tools
Comparing version
@@ -31,2 +31,3 @@ declare var path: any; | ||
externalScripts?: ExternalScripts; | ||
styles?: string; | ||
}; |
@@ -12,3 +12,3 @@ "use strict"; | ||
throw new Error('There can be only one host app.'); | ||
generateHTMLFile(options.cwd, Object.keys(options.hostEntries)[0], options.externalScripts); | ||
generateHTMLFile(options.cwd, Object.keys(options.hostEntries)[0], options.externalScripts, options.styles); | ||
webpackConfigs.push({ | ||
@@ -15,0 +15,0 @@ name: 'static', |
@@ -13,3 +13,3 @@ "use strict"; | ||
}, | ||
generateHTMLFile: (cwd, fileName, externalScripts = []) => { | ||
generateHTMLFile: (cwd, fileName, externalScripts = [], styles = '') => { | ||
const basePath = path.join(cwd, 'public'); | ||
@@ -23,2 +23,3 @@ fs.mkdirSync(basePath, { recursive: true }); | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<style>${styles}</style> | ||
</head> | ||
@@ -25,0 +26,0 @@ <body> |
{ | ||
"name": "@micro-frontend-react/core", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
28891
0.47%415
0.48%