Skip to content

Commit

Permalink
docs(module-tools): fix code demo about style.inject (#5324)
Browse files Browse the repository at this point in the history
  • Loading branch information
10Derozan authored Jan 29, 2024
1 parent 48e52e3 commit 67b9f52
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1282,7 +1282,9 @@ Set `inject` to `true` to enable this feature:
```js title="modern.config.ts"
export default defineConfig({
buildConfig: {
inject: true,
style: {
inject: true,
},
},
});
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,6 @@ export default defineConfig({
});
```


## dts.only

是否在构建时只生成类型文件,不生成 JavaScript 产物文件。
Expand Down Expand Up @@ -1281,7 +1280,9 @@ export default defineConfig({
```js title="modern.config.ts"
export default defineConfig({
buildConfig: {
inject: true,
style: {
inject: true,
},
},
});
```
Expand Down

0 comments on commit 67b9f52

Please sign in to comment.