Nuxt 3 + Tailwind CSS 3 Starter: How to add Tailwind CSS v3 to your Nuxt 3 application

Nuxt 3 + Tailwind CSS 3 Starter: How to add Tailwind CSS v3 to your Nuxt 3 application

Dan Vega

2 года назад

10,398 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Pi-Dev
Pi-Dev - 28.10.2022 16:01

Not sure what has changed but I tried cloning the repo (even after removing the defineNuxtConfig import in nuxt.config.ts) but the dev server can't start because nuxt isn't found. That's a pity.

Ответить
Cheryl Jones
Cheryl Jones - 11.09.2022 11:45

Thanks for spending the time to do this. For some reason, I cannot get tailwind to update properly. In order for any changes to take place, I have to restart the server. Do you have any ideas why this might be happening?

Ответить
EdVanTising
EdVanTising - 11.09.2022 08:52

Thank you. 👍🚀

Ответить
ExtraServings BTS
ExtraServings BTS - 10.09.2022 18:19

Please see Alex Gulko's comment. You'll get errors if you don't remove line 7 of tailwind.config.js - must have changed since the video was created.

Ответить
Ismail Electricwala
Ismail Electricwala - 03.08.2022 13:58

Thank.
In my nuxt.config.ts postcss already has a defined type. Therefore I am unable to add the 'plugins' attribute to it.

Ответить
Kehinde Adeleke
Kehinde Adeleke - 07.07.2022 23:54

this saved me hours of being frustrated, thank you very much

Ответить
Aqlex
Aqlex - 04.07.2022 05:17

If you are experiencing issues when generating a build, uncomment "./nuxt.config.{js,ts}", in tailwind config

Ответить
Dieter Deutsch
Dieter Deutsch - 29.06.2022 20:52

Unfortunately, I always get an error after I create the components folder. After I copied a file into assets I also got an error.
Do I have to pay attention to something when creating folders such as middleware, components, etc. that nuxt uses?

Ответить
Ares Catalin
Ares Catalin - 03.06.2022 15:27

Thanks. this should be added into the docs

Ответить
Amir Bahador
Amir Bahador - 28.04.2022 17:50

ty sir 🌷❤️🙏🏻

Ответить
Eggsilex
Eggsilex - 05.04.2022 13:14

Thank you, this is very helpful.

Ответить
SolidusCode
SolidusCode - 31.01.2022 08:07

great video Dan. I am a veteran of nuxt 2 and starting a development of a startup using nuxt 3.0. This video was helpful. Thank you

Ответить
Jordi Enric
Jordi Enric - 26.01.2022 17:49

Thanks for the tut Dan!

Ответить