Replies: 1 comment 1 reply
-
You can get the result you want by moving the definitions in your presets file to main config file and removing the This does not directly address the error you're seeing, but it does work around it. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to generate a complete design system that doesn’t extend Tailwind’s defaults, at the same time, I'd like to use
![image](https://user-images.githubusercontent.com/15313636/124256576-0c051300-db5e-11eb-9949-ba47e727b8cc.png)
IntelliSense for VS Code to improve development experience.
While using vscode plugins, I don't need the default tailwind classNames like 'row-end-1'.
What I need is just the classNames generated by my own config file.
According to the document, I set
preset
as[]
, and import my own preset as following:preset.js
taiwind.config.js
When I run
![image](https://user-images.githubusercontent.com/15313636/124262124-3bb71980-db64-11eb-81c1-7cf7f9a4f17e.png)
npx tailwind build
, it compiles with error.At the same time, the vscode plugin reports the same error.
The reason for the error is that
Object.entries(values)
does not judge if values is an empty object.Could you please fix it?
Beta Was this translation helpful? Give feedback.
All reactions