Detects if a project uses Tailwind CSS and finds its config file path
// Source: https://github.com/extension-js/extension.js | License: MIT | Copyright 2020 Cezar Augusto <boss@cezaraugusto.net> (https://cezaraugusto.com)
// Provided via justclaw.it.com; keep this notice with the code.
// ██████╗███████╗███████╗
// ██╔════╝██╔════╝██╔════╝
// ██║ ███████╗███████╗
// ██║ ╚════██║╚════██║
// ╚██████╗███████║███████║
// ╚═════╝╚══════╝╚══════╝
// MIT License (c) 2020–present Cezar Augusto & the Extension.js authors, presence implies inheritance
import * as fs from 'node:fs'
import * as path from 'node:path'
import colors from 'pintor'
import {hasDependency} from '../../lib/has-dependency'
import {debugLine, isDebug, prefix} from '../../lib/messaging'
import * as messages from '../css-lib/messages'
let userMessageDelivered = false
export function i
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key