14 lines
453 B
JavaScript
14 lines
453 B
JavaScript
import { resolve, dirname } from 'path'
|
|
import { fileURLToPath } from 'url'
|
|
|
|
/**
|
|
* Use this to generate an entry for the Tailwind 'content' config key that will ensure
|
|
* this library is scanned to prevent unnecessary purging
|
|
* @returns {string[]}
|
|
*/
|
|
export function tailwindContentEntries() {
|
|
const __filename = fileURLToPath(import.meta.url)
|
|
const __dirname = dirname(__filename)
|
|
return [resolve(__dirname, '../dist', '**/*.{js,cjs,mjs}')]
|
|
}
|