Skip to content

Commit

Permalink
Implemented Nuxt Tailwind Module
Browse files Browse the repository at this point in the history
  • Loading branch information
TechAkayy committed Aug 30, 2024
1 parent 1273241 commit b416111
Show file tree
Hide file tree
Showing 5 changed files with 727 additions and 65 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ Check out the [deployment documentation](https://nuxt.com/docs/getting-started/d
- [VueUse](https://vueuse.org/) - collection of essential Vue composition utilities.
- 🍍 [Pinia](https://pinia.vuejs.org/ssr/nuxt.html) stores for global state management via the `@pinia/nuxt module`. Its light-weight, type-safe, extensible, modular with vue-devtools support.
- [VeeValidate](https://vee-validate.logaretm.com/v4/integrations/nuxt/) takes care of value tracking, validation, errors, submissions and more.
- [Nuxt Tailwind CSS](https://tailwindcss.nuxtjs.org/) - The Tailwind CSS module for Nuxt lets you set up Tailwind CSS in your Nuxt application in seconds, with many goodies 🍬.
- [Nuxt Image](https://image.nuxt.com/) - Plug-and-play image optimization for Nuxt apps.
- [Nuxt SEO](https://nuxtseo.com/) - Amazing collection of hand-crafted Nuxt Modules for all SEO needs with a unified site config. Includes `nuxt-site-config`, `nuxt-simple-robots`, `nuxt-simple-sitemap`, `nuxt-og-image`, `nuxt-link-checker`, `nuxt-seo-experiments`, `nuxt-schema-org`.
- OG images and nuxtseo features can be previewed with nuxt-devtools during development. OG images can also be viewed using URL in this form - `/__og-image__/image/<path>/og.<extension>`
Expand Down
1 change: 1 addition & 0 deletions app/content/quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ Check out the [deployment documentation](https://nuxt.com/docs/getting-started/d
- [VueUse](https://vueuse.org/) - collection of essential Vue composition utilities.
- 🍍 [Pinia](https://pinia.vuejs.org/ssr/nuxt.html) stores for global state management via the `@pinia/nuxt module`. Its light-weight, type-safe, extensible, modular with vue-devtools support.
- [VeeValidate](https://vee-validate.logaretm.com/v4/integrations/nuxt/) takes care of value tracking, validation, errors, submissions and more.
- [Nuxt Tailwind CSS](https://tailwindcss.nuxtjs.org/) - The Tailwind CSS module for Nuxt lets you set up Tailwind CSS in your Nuxt application in seconds, with many goodies 🍬.
- [Nuxt Image](https://image.nuxt.com/) - Plug-and-play image optimization for Nuxt apps.
- [Nuxt SEO](https://nuxtseo.com/) - Amazing collection of hand-crafted Nuxt Modules for all SEO needs with a unified site config. Includes `nuxt-site-config`, `nuxt-simple-robots`, `nuxt-simple-sitemap`, `nuxt-og-image`, `nuxt-link-checker`, `nuxt-seo-experiments`, `nuxt-schema-org`.
- OG images and nuxtseo features can be previewed with nuxt-devtools during development. OG images can also be viewed using URL in this form - `/__og-image__/image/<path>/og.<extension>`
Expand Down
18 changes: 7 additions & 11 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,10 @@ export default defineNuxtConfig({
// '@nuxtjs/fontaine', // blocked by https://github.com/nuxt-modules/fontaine/issues/342
'@nuxtjs/critters',
// '@nuxt/icon', // Enable once nuxt-icon is removed
'nuxt-icon', // To be replaced with @nuxt-icon (above), once NuxtSEO drops using this.
// To be replaced with @nuxt-icon (above), once NuxtSEO drops using this.
'nuxt-icon',
'@nuxt/eslint',
'@nuxtjs/tailwindcss',
],

// https://dev.to/jacobandrewsky/improving-performance-of-nuxt-with-fontaine-5dim
Expand All @@ -95,17 +97,11 @@ export default defineNuxtConfig({
// },
// },

css: [
'@/assets/css/tailwind.css',
'lite-youtube-embed/src/lite-yt-embed.css',
],
css: ['lite-youtube-embed/src/lite-yt-embed.css'],

postcss: {
plugins: {
'tailwindcss/nesting': {},
tailwindcss: {},
autoprefixer: {},
},
tailwindcss: {
configPath: 'tailwind.config.ts',
cssPath: '@/assets/css/tailwind.css',
},

vite: {
Expand Down
Loading

0 comments on commit b416111

Please sign in to comment.