Files
speckle-server/packages/frontend-2/tailwind.config.cjs
T
Kristaps Fabians Geikins de88eac52a fix(fe2): fsevents error resolved + storybook updated + .env.example updated to be more reasonable (#1715)
* fix: resolved fsevents issue + ensure-tailwind-deps building even when not needed

* fixed storybook

* upgrading storybook

* .env.example update
2023-07-21 11:35:37 +03:00

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