1.0.6 • Published 5 years ago

mins-react-create v1.0.6

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

mins-react-create

mins-react-create是帮助你快速创建生成react项目的脚手架工具,配置了多种可选择的不同类型项目模版。

Installation

npm install -g mins-react-create

Usage

mins init my-react

**tip: 1. init为通用项目模版,配置了常用的react工具。

初始化项目完成以后
cd my-react //进入项目目录
npm install //安装项目依赖
npm start //运行项目

command

启动项目

npm start 或者 npm run dev

启动项目后自动打开浏览器(传入 --o 参数)

npm start --o 或者npm start --open

打包项目

npm run build

打包项目并查看分析项目大小

npm run build --a

config

config目录下的index.js文件为项目webpack配置文件,包括有运行端口、地址、本地服务代理配置等一系列配置。

名称类型描述
hostString主机
portNumber端口
proxyTableObject代理配置
useEslintBoolean是否使用eslint
autoOpenBrowserBoolean是否自动打开浏览器
errorOverlayBoolean是否使用全屏报错提示
notifyOnErrorsBoolean是否使用消息通知
showEslintErrorsInOverlayBoolean是否使用eslint全屏报错提示
bundleAnalyzerReportBoolean是否使用打包编译完成后显示依赖分析
1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago