Skip to content

Commit

Permalink
Merge branch 'master' into docs-opt
Browse files Browse the repository at this point in the history
  • Loading branch information
kiner-tang authored Jun 29, 2024
2 parents bd30733 + 919597b commit 56e6ee1
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 4 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ This project is inspired by:
- [farm](https://github.com/farm-fe/farm) by [@brightwu](https://github.com/wre232114), which inspired the tree shaking, plugin system and others of Mako.
- [rspack](https://github.com/web-infra-dev/rspack), which inspired the tree shaking of Mako.
- [oxc-resolver](https://github.com/oxc-project/oxc-resolver) by [@Boshen](https://github.com/Boshen) which powered the resolver of Mako.
- [Oxc](https://github.com/oxc-project/oxc/) by [@Boshen](https://github.com/Boshen) from which we learned a lot about how to develop efficiently in Rust.
- [biome](https://github.com/biomejs/biome) by [@ematipico](https://github.com/ematipico) from which we learned a lot about how to develop efficiently in Rust.

## LICENSE

Expand Down
2 changes: 1 addition & 1 deletion crates/mako/src/stats.rs
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ pub fn write_stats(stats: &StatsJsonMap, compiler: &Compiler) {

// 文件大小转换
pub fn human_readable_size(size: u64) -> String {
let units = ["kB", "mB", "gB"];
let units = ["kB", "MB", "GB"];
// 把 B 转为 KB
let mut size = (size as f64) / 1000.0;
let mut i = 0;
Expand Down
2 changes: 1 addition & 1 deletion docs/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ Specify the code splitting strategy. Use `auto` or `granular` strategy for SPA,
// Node modules those will be split to framework chunk
frameworkPackages: [ "react", "antd" ],
// (optional) The minimum size of the node module to be split
lib_min_size: 160000
libMinSize: 160000
}
}
}
Expand Down
61 changes: 59 additions & 2 deletions packages/mako/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,60 @@
# @umijs/mako
<div align="center">

<img src="https://img.alicdn.com/imgextra/i2/O1CN01kdmA7X1FVqCPcRi3L_!!6000000000493-2-tps-584-584.png" alt="Mako logo" width="160" height="160" />

# Mako 🦈

[![](https://badgen.net/npm/v/@umijs/mako)](https://www.npmjs.com/package/@umijs/mako)
[![](https://badgen.net/npm/dm/@umijs/mako)](https://www.npmjs.com/package/@umijs/mako)
[![](https://github.com/umijs/mako/actions/workflows/ci.yml/badge.svg)](https://github.com/umijs/mako/actions/workflows/ci.yml)
[![](https://badgen.net/npm/license/umi)](https://www.npmjs.com/package/@umijs/mako)


Mako `['mɑːkoʊ]` is an **extremely fast**, **production-grade** web bundler based on **Rust**.

✨ See more at [makojs.dev](https://makojs.dev).
</div>

## Who's using Mako?

- Web App,Hybrid App, Mini Program (Partly), Low Code, Serverless in [Ant Group](https://www.antgroup.com/)
- [Ant Design](https://github.com/ant-design/ant-design/) using Mako for its website
- [Umi](https://umijs.org/) integrated Mako for its bundling
- [Dumi](https://d.umijs.org/) integrated Mako for its bundling
- [Father](https://github.com/umijs/father/) integrated Mako for its bundling

## Getting Started

Create a new mako project with the following command.

```bash
$ npm create mako
```

Check out the https://makojs.dev/ for more information.

## CONTRIBUTING

Read [CONTRIBUTING.md](./CONTRIBUTING.md).

## CHANGELOG

Read [CHANGELOG.md](./CHANGELOG.md).

## CONTACT US

Read [Feedback on makojs.dev](https://makojs.dev/docs/feedback) on joining the discussion, contacting the maintainers, and joining the mako contributors.

## CREDITS

This project is inspired by:

- [webpack](https://github.com/webpack/webpack), which inspired lots of ideas of Mako.
- [swc](https://github.com/swc-project/swc) by [@kdy1](https://github.com/kdy1), which powered the parsing, transforming and codegen of Mako.
- [farm](https://github.com/farm-fe/farm) by [@brightwu](https://github.com/wre232114), which inspired the tree shaking, plugin system and others of Mako.
- [rspack](https://github.com/web-infra-dev/rspack), which inspired the tree shaking of Mako.
- [oxc-resolver](https://github.com/oxc-project/oxc-resolver) by [@Boshen](https://github.com/Boshen) which powered the resolver of Mako.

## LICENSE

[MIT](./LICENSE)

0 comments on commit 56e6ee1

Please sign in to comment.