Skip to content

Commit

Permalink
docs: fix config filename (#627)
Browse files Browse the repository at this point in the history
  • Loading branch information
luhc228 authored Jan 4, 2024
1 parent de7f295 commit 74581b8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion website/docs/guide/abilities.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ export default App;

在 ICE PKG 仅配置输出 ES2017 产物:

```ts title="ice.config.mts"
```ts title="build.config.mts"
import { defineConfig } from '@ice/pkg';

export default defineConfig({
Expand Down
10 changes: 5 additions & 5 deletions website/docs/guide/build.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ ICE PKG 默认支持 `esm`、`es2017`、`cjs`、`umd` 四种构建产物类型

下面是 ICE PKG 默认的产物构建配置:

```ts title="ice.config.mts"
```ts title="build.config.mts"
import { defineConfig } from '@ice/pkg';

export default defineConfig({
Expand Down Expand Up @@ -57,7 +57,7 @@ export default defineConfig({

如果你确定你的运行环境支持 [ES2017 产物](./abilities#es2017-产物),推荐使用以下的配置仅生成体积更小的构建产物:

```ts title="ice.config.mts"
```ts title="build.config.mts"
import { defineConfig } from '@ice/pkg';

export default defineConfig({
Expand Down Expand Up @@ -91,7 +91,7 @@ export default defineConfig({

由于 Node 12.20.0 支持 ES Module 和所有的 ES2017 的语法。因此推荐以下的配置:

```ts title="ice.config.mts"
```ts title="build.config.mts"
import { defineConfig } from '@ice/pkg';

export default defineConfig({
Expand Down Expand Up @@ -146,7 +146,7 @@ export default defineConfig({

ICE PKG 仅支持在 [Bundle 模式](./abilities#bundle-模式)下构建出 UMD 产物,配置方式如下:

```ts title="ice.config.mts"
```ts title="build.config.mts"
import { defineConfig } from '@ice/pkg';

export default defineConfig({
Expand All @@ -167,7 +167,7 @@ dist

如果需要额外输出一份未压缩的 UMD 产物以方便调试构建,可以新增 [bundle.modes 配置项](../reference/config#modes)

```diff title="ice.config.mts"
```diff title="build.config.mts"
import { defineConfig } from '@ice/pkg';

export default defineConfig({
Expand Down
2 changes: 1 addition & 1 deletion website/docs/guide/monorepo.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ export default defineConfig({

默认情况下,当我们访问根路由(`/`)是返回 404 页面的。如果我们想定制文档首页的内容,我们可以增加 [`pageRouteBasePath`](./preview#pageroutebasepath) 配置:

首先在 `ice.config.mts` 中新增以下内容:
首先在 `build.config.mts` 中新增以下内容:
```diff
import { defineConfig } from '@ice/pkg';

Expand Down

1 comment on commit 74581b8

@vercel
Copy link

@vercel vercel bot commented on 74581b8 Jan 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

icepkg – ./

icepkg.vercel.app
icepkg-git-main-icepkg.vercel.app
icepkg-icepkg.vercel.app

Please sign in to comment.