Skip to content

Commit 8014f8d

Browse files
committed
docs: 补充 Compiler CSS 选项英文文档
Refs #1133 Refs #1134
1 parent 0440760 commit 8014f8d

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
title: "CompilerCssTransformOptions"
3+
description: "Options for transforming CSS through the core compiler."
4+
keywords:
5+
- "weapp-tailwindcss"
6+
- "API"
7+
- "compiler"
8+
- "CSS"
9+
- "TypeScript"
10+
---
11+
12+
# CompilerCssTransformOptions
13+
14+
Options accepted by `Compiler.transformCss()` and `Compiler.transformCssRoot()`.
15+
16+
## Properties
17+
18+
### finalize?
19+
20+
> **finalize**: `boolean`
21+
22+
Whether to finalize CSS for mini-program output after the style compatibility transform. It defaults to `true` when `snapshot.target` is `"weapp"`; set it to `false` to preserve build-time at-rules.
23+
24+
### isMainChunk?
25+
26+
> **isMainChunk**: `boolean`
27+
28+
Whether this CSS is the main chunk. The remaining properties are inherited from the PostCSS style handler options, including `cssPreflight`, `cssOptions`, `postcssOptions`, `majorVersion`, and `appType`.

0 commit comments

Comments
 (0)