Files
speckle-server/packages/ui-components/utils/tailwind-configure.js
T

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}')]
}