We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34d9351 commit 415faf7Copy full SHA for 415faf7
1 file changed
packages/weapp-tailwindcss/src/bundlers/vite/index.ts
@@ -184,11 +184,12 @@ export function UnifiedViteWeappTailwindcssPlugin(options: UserDefinedOptions =
184
await refreshRuntimeState(true)
185
}
186
if (typeof config.css.postcss === 'object' && Array.isArray(config.css.postcss.plugins)) {
187
- const idx = config.css.postcss.plugins.findIndex(x =>
+ const postcssPlugins = config.css.postcss.plugins as unknown[]
188
+ const idx = postcssPlugins.findIndex(x =>
189
// @ts-ignore
190
x.postcssPlugin === 'postcss-html-transform')
191
if (idx > -1) {
- config.css.postcss.plugins.splice(idx, 1, postcssHtmlTransform())
192
+ postcssPlugins.splice(idx, 1, postcssHtmlTransform())
193
debug('remove postcss-html-transform plugin from vite config')
194
195
0 commit comments