New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@careteam/mfe-boilerplate-micro-sub-react

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@careteam/mfe-boilerplate-micro-sub-react

开发及使用参考 [mfe-init脚手架工具](https://git.code.oa.com/medical-data-fe/mfe-init)

latest
npmnpm
Version
1.0.18
Version published
Maintainers
1
Created
Source

react子应用脚手架模板

开发及使用参考 mfe-init脚手架工具

新建react子应用

// if not installed
npm i @careteam/mfe-init -g

mfe-init [dir] --type=react-sub

注意

子应用脚手架已经升级为webpack5版本,由于dev-server暂时不兼容,开发环境需要使用webpack watch模式同时手动通过http-server起端口暴露静态资源。issue传送门,待修复完成即可继续使用dev-server

  • 示例代码
"scripts": {
    "http-server": "http-server build -p 9002 --cors",
    "dev": "cross-env NODE_ENV=development webpack --config=webpack-dev.config.js --progress",
}
// cmd
npm run dev && npm run http-server

FAQs

Package last updated on 22 Feb 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts