目录

Mako Plugin for Umi@3

Install

$ npm i umi-plugin-mako -D

Usage

Enable by config.

import { defineConfig } from 'umi';

export default defineConfig({
  mako: {
    // mako.config.json
    // mako config
  },
});

Build

$ umi build

INFO Using mako@0.7.4
Building with mako for production...
dist/umi.css     0.04 kB
dist/umi.js    403.76 kB
✓ Built in 571ms
Complete!
 File              Size                        Gzipped

 dist/umi.js       394.3 KB                    93.3 KB
 dist/umi.css      35.0 B                      55.0 B

  Images and other types of assets omitted.

mako build complete

Dev

$ umi dev

INFO Using mako@0.7.4
Starting the development server...
http://localhost:8000
Building with mako for development...
✓ Built in 352ms

LICENSE

MIT

Example

Please refer to umi-antd-pro‘s commit for usage cases

webpack

Theme generated successfully
 DONE  Compiled successfully in 38919ms              15:00:51

✨  Done in 41.77s.

mako


✓ Built in 4807ms
mako build complete
✨  Done in 7.82s.
关于
215.0 KB
邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9 京公网安备 11010802032778号