Skip to content

Commit

Permalink
docs: add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiahan committed Aug 25, 2023
1 parent 0f712f6 commit b81008d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export default {
```

:::tip
Please upgrade Modern.js to version >= MAJOR_VERSION.33.0 to support automatic reading of `tailwind.config.{ts,js}` files.
Please upgrade Modern.js to version >= FRAMEWORK_MAJOR_VERSION.33.0 to support automatic reading of `tailwind.config.{ts,js}` files.
:::

2. Using the [tools.tailwindcss](/configure/app/tools/tailwindcss.html) configuration option. This is the old way of configuring Tailwind CSS, and we recommend using the `tailwind.config.{ts,js}` file for configuration.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export default {
```

:::tip
请升级 Modern.js 到 >= MAJOR_VERSION.33.0 版本,以支持自动读取 `tailwind.config.{ts,js}` 文件。
请升级 Modern.js 到 >= FRAMEWORK_MAJOR_VERSION.33.0 版本,以支持自动读取 `tailwind.config.{ts,js}` 文件。
:::

2. 使用 [tools.tailwindcss](/configure/app/tools/tailwindcss.html) 配置项,这是旧版本的用法,我们更推荐使用 `tailwind.config.{ts,js}` 文件进行配置。
Expand Down
4 changes: 3 additions & 1 deletion packages/document/main-doc/modern.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,9 @@ export default defineConfig({
},
replaceRules: [
{
search: /MAJOR_VERSION/g,
// The framework major version is different inside the ByteDance,
// so we use a flag to define it.
search: /FRAMEWORK_MAJOR_VERSION/g,
replace: '2',
},
],
Expand Down

0 comments on commit b81008d

Please sign in to comment.