isSimplePostCSSConfig() — tailwindcss Function Reference
Architecture documentation for the isSimplePostCSSConfig() function in migrate-postcss.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 6df72484_177e_78b7_6f88_c63e2715d6fa["isSimplePostCSSConfig()"] 9434c276_afef_dc51_650b_a8b408f077fc["migrate-postcss.ts"] 6df72484_177e_78b7_6f88_c63e2715d6fa -->|defined in| 9434c276_afef_dc51_650b_a8b408f077fc f9e8808d_82e8_403c_7491_74c3ba5e23be["migratePostCSSJSConfig()"] f9e8808d_82e8_403c_7491_74c3ba5e23be -->|calls| 6df72484_177e_78b7_6f88_c63e2715d6fa style 6df72484_177e_78b7_6f88_c63e2715d6fa 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, defined in packages/@tailwindcss-upgrade/src/codemods/config/migrate-postcss.ts.
Where is isSimplePostCSSConfig() defined?
isSimplePostCSSConfig() is defined in packages/@tailwindcss-upgrade/src/codemods/config/migrate-postcss.ts at line 334.
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