- cwd
- libraryName
- babel
- disableCSSModules
- extraResolveModules
- plugins
- routerTpl
- entryJSTpl
- staticDirectory, default
static
- tmpDirectory, default
.${libraryName}
- outputPath, default
./dist
require('umi/lib/dev')(opts);
Opts for dev only:
- extraMiddlewares
require('umi/lib/build')(opts);
Opts for build only:
- hash
- generateEntry
- getConfigScript
- getTailBodyReplace
- generateHTML
- buildSuccess