Skip to content

Latest commit

 

History

History
51 lines (36 loc) · 584 Bytes

Develop.md

File metadata and controls

51 lines (36 loc) · 584 Bytes

Develop

Opts for both dev and build

  • cwd
  • libraryName
  • babel
  • disableCSSModules
  • extraResolveModules
  • plugins
  • routerTpl
  • entryJSTpl
  • staticDirectory, default static
  • tmpDirectory, default .${libraryName}
  • outputPath, default ./dist

dev

require('umi/lib/dev')(opts);

Opts for dev only:

  • extraMiddlewares

build

require('umi/lib/build')(opts);

Opts for build only:

  • hash

Plugin

Generate Entry

  • generateEntry  

Generate HTML

  • getConfigScript
  • getTailBodyReplace
  • generateHTML  

Build

  • buildSuccess