1.10.0 • Published 3 years ago

@manpacker/generator-react v1.10.0

Weekly downloads
49
License
MIT
Repository
github
Last release
3 years ago

npm npm bundle size npm NPM nodei.co

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

@manpacker/generator

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:

nametypevaluedescription
isReactProvidebooleandefault: trueAutomatically provide React ReactDOM references

isReactProvide

{ isReactProvide: false }

Every file need import React from 'react' Every file need import ReactDOM from 'react-dom'

Npm

link