diff --git a/packages/document/main-doc/docs/en/guides/basic-features/css.mdx b/packages/document/main-doc/docs/en/guides/basic-features/css.mdx index ffda1204f194..fcf0f4734d98 100644 --- a/packages/document/main-doc/docs/en/guides/basic-features/css.mdx +++ b/packages/document/main-doc/docs/en/guides/basic-features/css.mdx @@ -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. diff --git a/packages/document/main-doc/docs/zh/guides/basic-features/css.mdx b/packages/document/main-doc/docs/zh/guides/basic-features/css.mdx index 4b991ed48846..45354ada5a23 100644 --- a/packages/document/main-doc/docs/zh/guides/basic-features/css.mdx +++ b/packages/document/main-doc/docs/zh/guides/basic-features/css.mdx @@ -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}` 文件进行配置。 diff --git a/packages/document/main-doc/modern.config.ts b/packages/document/main-doc/modern.config.ts index 64b672305e27..240e9ad62050 100644 --- a/packages/document/main-doc/modern.config.ts +++ b/packages/document/main-doc/modern.config.ts @@ -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', }, ],