N
Nuxt3y ago
Zampa

PostCSS.config is a path (string) or a boolean?

https://nuxt.com/docs/api/configuration/nuxt-config/#postcss The docs are confusing as to whether or not postcss.config is supposed to receive a path to a postcss.config.js, or it's a boolean indicating that one exists, or it's the actual config object itself? The schema seems to indicate boolean, but that doesn't seem to make sense?
// node_modules/.pnpm/@[email protected]/node_modules/@nuxt/schema/dist/index.d.ts
postcss: {
/**
* Path to postcss config file.
* @default false
*/
config: boolean,

/**
* Options for configuring PostCSS plugins.
* https://postcss.org/
*/
plugins: Record<string, any>,
},
// node_modules/.pnpm/@[email protected]/node_modules/@nuxt/schema/dist/index.d.ts
postcss: {
/**
* Path to postcss config file.
* @default false
*/
config: boolean,

/**
* Options for configuring PostCSS plugins.
* https://postcss.org/
*/
plugins: Record<string, any>,
},
Nuxt
Nuxt Configuration Reference • Nuxt
Nuxt makes web development intuitive and fun. The open source framework NuxtJS makes the development of modern web applications simple.
No description
2 Replies
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Zampa
ZampaOP3y ago
@Mahdi probably so... I'd guess this was overlooked. I can maybe bring it up as a PR to change the docs and remove the config option.
Want results from more Discord servers?
Add your server