mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
parent
fad5c81045
commit
d3440c12ac
@ -395,7 +395,7 @@ export async function compile(
|
||||
})
|
||||
|
||||
if (process.env.NODE_ENV !== 'test') {
|
||||
ast.unshift(comment(`! tailwindcss v${getVersion()} | MIT License | https://tailwindcss.com `))
|
||||
ast.unshift(comment(`! tailwindcss v${version} | MIT License | https://tailwindcss.com `))
|
||||
}
|
||||
|
||||
// Track all invalid candidates
|
||||
@ -459,14 +459,6 @@ export async function __unstable__loadDesignSystem(css: string, opts: CompileOpt
|
||||
return result.designSystem
|
||||
}
|
||||
|
||||
function getVersion() {
|
||||
if (process.env.VERSION) {
|
||||
return process.env.VERSION
|
||||
} else {
|
||||
return version
|
||||
}
|
||||
}
|
||||
|
||||
export default function postcssPluginWarning() {
|
||||
throw new Error(
|
||||
`It looks like you're trying to use \`tailwindcss\` directly as a PostCSS plugin. The PostCSS plugin has moved to a separate package, so to continue using Tailwind CSS with PostCSS you'll need to install \`@tailwindcss/postcss\` and update your PostCSS configuration.`,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user