Skip to content

Commit df89c64

Browse files
committed
docs: update readme
1 parent ce91e3b commit df89c64

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.ZH-CN.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,9 +224,9 @@ export interface Options {
224224
## Tips
225225

226226
### ● 转换分析时的约定规则
227-
1. `sfc` 中,如果 `@import` 指定了后缀,则根据后缀的文件进行转换分析,否则根据当前 `script` 标签的 `lang` 属性(默认 `css` )进行转换分析
227+
1. `sfc` 中,如果 `@import` 指定了后缀,则根据后缀的文件进行转换分析,否则根据当前 `style` 标签的 `lang` 属性(默认 `css` )进行转换分析
228228
2. `css` 中规则:`css` 文件只能引用 `css` 文件,只会解析 `css` 后缀的文件。
229-
3. `scss``less``stylus` 中规则:`scss``less``stylus文件可以引用` `css` 文件、以及对应的 `scss``less` 文件或 `stylus` 文件,
229+
3. `scss``less``stylus` 中规则:`scss``less``stylus` 文件可以引用 `css` 文件、以及对应的 `scss``less` 文件或 `stylus` 文件,
230230
优先对预处理器后缀的文件进行转换分析,如果文件不存在,则对其 `css` 文件进行分析
231231

232232
### ● sfc 中变量提取规则

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,9 +227,9 @@ export interface Options {
227227

228228
### ● Rules When Transforming Analysis
229229
1. In `sfc`, if `@import` specifies a suffix, the conversion analysis will be performed according to the suffix file,
230-
otherwise the conversion analysis will be performed according to the `lang` attribute of the current `script` tag (default `css`)
230+
otherwise the conversion analysis will be performed according to the `lang` attribute of the current `style` tag (default `css`)
231231
2. Rules in `css`: `css` files can only reference `css` files, and only files with `css` suffixes will be parsed.
232-
3. Rules in `scss`, `less`, `stylus`: `scss`, `less`, `stylus` files can refer to` `css` files, and corresponding `scss` or `less` files or `stylus` files,
232+
3. Rules in `scss`, `less`, `stylus`: `scss`, `less`, `stylus` files can refer to `css` files, and corresponding `scss` or `less` files or `stylus` files,
233233
Prioritize conversion analysis of files with preprocessor suffixes, if the file does not exist, analyze its `css` file
234234

235235
### ● Variable extraction rules in SFC

0 commit comments

Comments
 (0)