@manpacker/generator-react
v1.10.0
Published
Generator react frontend build project
Downloads
7
Maintainers
Readme
Explain
@manpacker/generator-react is a set of build engine based on @manpacker/generator to build engine package. Entry file supported file extension js or ts Support for multi-portal file build, Files must be in the build root directory.
Consult
Install
npm i @manpacker/generator-react -D
Usage
CLI
Start the local development environment.
manpacker-react server
manpacker-react server --ic [value] -c [config] --port [number]
Construction of production environment engineering project.
manpacker-react build
manpacker-react build --ic [value] -c [config]
.manpackeric
Default root file name: .manpackeric Configuration item description: Expand:
|name|type|value|description| |----|----|-----|-----------| |isReactProvide|boolean|default: true|Automatically provide React ReactDOM references|
isReactProvide
{ isReactProvide: false }
Every file need import React from 'react' Every file need import ReactDOM from 'react-dom'