When using nuxt and tailwind external css file does not work

Issue

I want to use an external .css file but It does not work. I have tried link rel="stylesheet" and @importing css in style tags but it does not work

Solution

for importing css file to your nuxt app open yout nuxt.config.js file and in css section add your css files like: css: ['~layouts/global.css']Ali Hosseini

Answered By – Garbg

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published