react-cli-service

1.9.14 • Public • Published

react cli service

create-react-app更好用的react cli

structs

参考https://github.com/zlab/react-cli-demo

已有项目

npm i react-cli-service -D

package.json

"scripts": {
    "serve": "react-cli-service serve",
    "build": "react-cli-service build --report"
},

配置

新增react.config.js

入口

默认入口为src/main.js

新项目

下载模版

git clone https://github.com/zlab/react-cli-demo my-project
cd my-project

install

npm i or yarn

dev

npm run serve or yarn serve

preview

http://localhost:8080

build

npm run build or yarn build

配置参考

@vue/cli3

webpack-chain

Readme

Keywords

none

Package Sidebar

Install

npm i react-cli-service

Weekly Downloads

5

Version

1.9.14

License

MIT

Unpacked Size

345 kB

Total Files

7

Last publish

Collaborators

  • zhanqi