de88eac52a
* fix: resolved fsevents issue + ensure-tailwind-deps building even when not needed * fixed storybook * upgrading storybook * .env.example update
34 lines
1016 B
JavaScript
34 lines
1016 B
JavaScript
const speckleTheme = require('@speckle/tailwind-theme')
|
|
const {
|
|
tailwindContentEntry: themeEntry
|
|
} = require('@speckle/tailwind-theme/tailwind-configure')
|
|
const {
|
|
tailwindContentEntry: uiLibEntry
|
|
} = require('@speckle/ui-components/tailwind-configure')
|
|
const formsPlugin = require('@tailwindcss/forms')
|
|
const { createRequire } = require('module')
|
|
|
|
// i know, this is bizarre - import.meta.url in a CJS file
|
|
// but this happens because apparently this file is transpiled to different formats (ESM/CJS) multiple times
|
|
// if this were an mjs file it wouldn't work
|
|
const req = createRequire(import.meta.url)
|
|
|
|
const config = {
|
|
darkMode: 'class',
|
|
content: [
|
|
`./components/**/*.{vue,js,ts}`,
|
|
`./layouts/**/*.vue`,
|
|
`./pages/**/*.vue`,
|
|
`./composables/**/*.{js,ts}`,
|
|
`./plugins/**/*.{js,ts}`,
|
|
'./stories/**/*.{js,ts,vue,mdx}',
|
|
'./app.vue',
|
|
'./lib/**/composables/*.{js,ts}',
|
|
themeEntry(req),
|
|
uiLibEntry(req)
|
|
],
|
|
plugins: [speckleTheme, formsPlugin]
|
|
}
|
|
|
|
module.exports = config
|