isSimplePostCSSConfig() — tailwindcss Function Reference
Architecture documentation for the isSimplePostCSSConfig() function in migrate-postcss.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD dd2eab63_56b4_787d_b31b_690166321dba["isSimplePostCSSConfig()"] 02abfdc1_e285_188c_43c7_c63389394a0b["migratePostCSSJSConfig()"] 02abfdc1_e285_188c_43c7_c63389394a0b -->|calls| dd2eab63_56b4_787d_b31b_690166321dba style dd2eab63_56b4_787d_b31b_690166321dba fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/@tailwindcss-upgrade/src/codemods/config/migrate-postcss.ts lines 334–344
async function isSimplePostCSSConfig(configPath: string): Promise<boolean> {
let content = await fs.readFile(configPath, 'utf-8')
return (
content.includes('tailwindcss:') &&
!(
content.includes('require') ||
// Adding a space at the end to not match `'postcss-import'`
content.includes('import ')
)
)
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does isSimplePostCSSConfig() do?
isSimplePostCSSConfig() is a function in the tailwindcss codebase.
What calls isSimplePostCSSConfig()?
isSimplePostCSSConfig() is called by 1 function(s): migratePostCSSJSConfig.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free