Closed draylegend closed 3 months ago
Hey, thanks for the repro. I wasn't able to run your project locally, but it looks like it's missing the extractor from the installation section. Curious to hear if that fixes it for you 👍
I tried to use extractor but it didn't work, then I copied the config from the playground.
Changed the tailwind config to the installation instructions accordingly.
@barvian you can use npm
to install deps if you don't have bun
I tried to use extractor but it didn't work, then I copied the config from the playground.
Changed the tailwind config to the installation instructions accordingly.
@barvian you can use
npm
to install deps if you don't have bun
Hi, I installed the dependencies fine with bun
but I didn't know how to run the actual project from there 🤔
nx serve client
Gotcha, thanks. I was able to get it working locally with this config:
const { createGlobPatternsForDependencies } = require('@nx/angular/tailwind');
const { join } = require('path');
const { default: fluid, extract } = require('fluid-tailwind');
/** @type {import('tailwindcss').Config} */
module.exports = {
content: {
files: [
join(__dirname, 'src/**/!(*.stories|*.spec).{ts,html}'),
...createGlobPatternsForDependencies(__dirname),
],
extract,
},
theme: {
screens: {
xs: '20rem',
lg: '64rem',
},
},
plugins: [fluid],
};
@barvian u r awesome ❤️🔥 I had an array instead of object. Now works for me as well!
Config doesn't work for me in an nx/angular workspace with tailwind. Repo
Smartphone view
Tablet view