Skip to content

Commit

Permalink
fix: remove postcss.config from schema (nuxt#9181)
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanchase authored Nov 19, 2022
1 parent d2ead6f commit 13e4f8b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
4 changes: 0 additions & 4 deletions packages/schema/src/config/postcss.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
10 changes: 0 additions & 10 deletions packages/webpack/src/utils/postcss.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 13e4f8b

Please sign in to comment.