You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@micro-frontend-react/core

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@micro-frontend-react/core - npm Package Compare versions

Comparing version

to
1.0.5

1

lib/WebpackConfigs/WebpackConfigs.d.ts

@@ -31,2 +31,3 @@ declare var path: any;

externalScripts?: ExternalScripts;
styles?: string;
};

2

lib/WebpackConfigs/WebpackConfigs.js

@@ -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