File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
packages/vite/src/node/plugins Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -198,7 +198,7 @@ Configure CSS modules behavior. The options are passed on to [postcss-modules](h
198
198
199
199
## css.postcss
200
200
201
- - ** Type:** ` string | (postcss.ProcessOptions & { plugins?: postcss.Plugin [] }) `
201
+ - ** Type:** ` string | (postcss.ProcessOptions & { plugins?: postcss.AcceptedPlugin [] }) `
202
202
203
203
Inline PostCSS config or a custom directory to search PostCSS config from (default is project root).
204
204
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ export interface CSSOptions {
70
70
postcss ?:
71
71
| string
72
72
| ( PostCSS . ProcessOptions & {
73
- plugins ?: PostCSS . Plugin [ ]
73
+ plugins ?: PostCSS . AcceptedPlugin [ ]
74
74
} )
75
75
/**
76
76
* Enables css sourcemaps during dev
@@ -833,7 +833,7 @@ async function compileCSS(
833
833
UrlRewritePostcssPlugin ( {
834
834
replacer : urlReplacer ,
835
835
logger : config . logger
836
- } ) as PostCSS . Plugin
836
+ } )
837
837
)
838
838
839
839
if ( isModule ) {
@@ -1009,7 +1009,7 @@ async function finalizeCss(
1009
1009
1010
1010
interface PostCSSConfigResult {
1011
1011
options : PostCSS . ProcessOptions
1012
- plugins : PostCSS . Plugin [ ]
1012
+ plugins : PostCSS . AcceptedPlugin [ ]
1013
1013
}
1014
1014
1015
1015
async function resolvePostcssConfig (
You can’t perform that action at this time.
0 commit comments