2.0.2 • Published 4 years ago

umi-plugin-console v2.0.2

Weekly downloads
18
License
-
Repository
github
Last release
4 years ago

umi-plugin-console

NPM version NPM downloads

用于 umi 打包过程中配置各个钩子 log 输出一些提示性的信息,比较适合写命令行工具时候使用,友好提示用户,具体效果如下:

Usage

# or yarn
$ npm install umi-plugin-console -D

Configure in .umirc.js,

export default {
  console: {
    onPluginReady:
      '\n 插件初始化完成日志输出,在 onStart 之前,此时还没有 config 和 paths,他们尚未解析好',
    onStart: '\n 开始编译日志输出',
    onBuildComplete: '\n 构建完成日志输出,包括失败场景',
    onDevCompileDone: '\n 构建完成日志输出,没有失败场景',
    onExit: '\n 编译退出日志输出,dev 退出时触发',
  },
};

Options

Develop

# or yarn
$ npm install
$ npm run build --watch
$ npm run start

LICENSE

MIT

2.0.2

4 years ago

2.0.0-beta

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

0.0.2

4 years ago