Files
speckle-server/packages/tailwind-theme/utils/tailwind-configure.cjs
T

17 lines
475 B
JavaScript

const { resolve } = require('path')
/**
* 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[]}
*/
function tailwindContentEntries() {
const currentLocation = __dirname
return [
resolve(currentLocation, '../dist', '**/*.{js,cjs,mjs}'),
resolve(currentLocation, '../dist-cjs', '**/*.{js,cjs,mjs}')
]
}
module.exports = { tailwindContentEntries }