How to use official plugins with the CLI? #3385
Unanswered
JoeWesthead
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Per the CLI documentation:
I run the documented command (note, the documentation has the path as
./.config
whereas as mine is./config
) with the additional Forms and Typography plugins included:npx tailwindcss-cli@latest build ./src/tailwind.css -c ./config/tailwind.config.js -o ./dist/tailwind.css
Where
./config/tailwind.config.js
looks like:When I run that command, I get the build error:
🚫 Error: Cannot find module '@tailwindcss/typography'
I additionally tried removing
require(...)
since I thought that might be specific to using npm locally rather than the CLI, but doing so just generated the CSS file without the plugins, as if they were ignored.So I suppose I have two questions:
Thanks for your patience. I've had trouble getting the typography running before when running a build system, but this is the first time I've tried using the CLI for quick development.
Beta Was this translation helpful? Give feedback.
All reactions