content
OptionThis repository demonstrates a common error when configuring Tailwind CSS's content
option. Including unnecessary files, especially from node_modules, can lead to unexpected build errors and incorrect styling.
The bug arises from specifying './node_modules/flowbite/**/*.js'
within the content
array of the Tailwind CSS configuration. This causes Tailwind to attempt to parse all .js
files within the flowbite node module, potentially leading to errors or unintended style application.
npm install
.content
configuration.The solution is to remove the './node_modules/flowbite/**/*.js'
entry from the content
array. Tailwind CSS should only process your application's source files.
content
array.