tailwindcss icon indicating copy to clipboard operation
tailwindcss copied to clipboard

Tailwind content parsing breaks the module

Open kpdemetriou opened this issue 3 years ago • 0 comments

Steps to reproduce

Set content in tailwind.config.js to a non-array as described in the Tailwind docs.

What is Expected?

The absence of errors.

What is actually happening?

Cannot start nuxt: (tailwindConfig.content || []).map is not a function.

Additional Commentary

You cannot assume that tailwindConfig.content is an array. It can also be an object. In the event that tailwindConfig.content is an object, you want to derive the list of files from tailwindConfig.content.files.

kpdemetriou avatar Jul 13 '22 22:07 kpdemetriou