MCPcopy
hub / github.com/tailwindlabs/tailwindcss / getExtension

Function getExtension

packages/@tailwindcss-vite/src/index.ts:380–383  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

378}
379
380function getExtension(id: string) {
381 let [filename] = id.split('?', 2)
382 return path.extname(filename).slice(1)
383}
384
385function isPotentialCssRootFile(id: string) {
386 if (id.includes('/.vite/')) return false

Callers 1

isPotentialCssRootFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected