1.10.0 • Published 5 years ago
@manpacker/generator-react v1.10.0
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 -DUsage
CLI
Start the local development environment.
manpacker-react servermanpacker-react server --ic [value] -c [config] --port [number]Construction of production environment engineering project.
manpacker-react buildmanpacker-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'