isSimplePostCSSConfig() — tailwindcss Function Reference
Architecture documentation for the isSimplePostCSSConfig() function in migrate-postcss.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 0991b7a9_2dc6_a407_732e_af0095c03777["isSimplePostCSSConfig()"] 4b19c8da_6fad_12c6_ffff_b88c922f8406["migratePostCSSJSConfig()"] 4b19c8da_6fad_12c6_ffff_b88c922f8406 -->|calls| 0991b7a9_2dc6_a407_732e_af0095c03777 style 0991b7a9_2dc6_a407_732e_af0095c03777 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