mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 15:15:19 +00:00
fix: remove postcss.config
from schema (#9181)
This commit is contained in:
parent
d2ead6ff3d
commit
13e4f8b679
@ -4,10 +4,6 @@ import { defineUntypedSchema } from 'untyped'
|
||||
|
||||
export default defineUntypedSchema({
|
||||
postcss: {
|
||||
/** Path to postcss config file. */
|
||||
/** @type string | false */
|
||||
config: false,
|
||||
|
||||
/**
|
||||
* Options for configuring PostCSS plugins.
|
||||
*
|
||||
|
@ -60,16 +60,6 @@ export const getPostcssConfig = (nuxt: Nuxt) => {
|
||||
return false
|
||||
}
|
||||
|
||||
const configFile = nuxt.options.postcss.config
|
||||
if (configFile) {
|
||||
return {
|
||||
postcssOptions: {
|
||||
config: configFile
|
||||
},
|
||||
sourceMap: nuxt.options.webpack.cssSourceMap
|
||||
}
|
||||
}
|
||||
|
||||
let postcssOptions = cloneDeep(nuxt.options.postcss)
|
||||
// Apply default plugins
|
||||
if (isPureObject(postcssOptions)) {
|
||||
|
Loading…
Reference in New Issue
Block a user