nuxt-modules / tailwindcss

Tailwind CSS module for Nuxt

Home Page:https://tailwindcss.nuxtjs.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

is it possiable to set preflight: false in nuxt.config?

MikeLee0358 opened this issue · comments

commented

thank you for your great work! I encountered some problem, I want to turn off preflight setting

  • goal
    want to set preflight: false in nuxt3/ nuxt.config

  • what did i do
    // nuxt.config.ts
    export default defineNuxtConfig({
    devtools: { enabled: true },
    modules: ['@pinia/nuxt', '@nuxtjs/tailwindcss'],
    tailwindcss: {
    preflight: false
    },
    })

You should be able to set preflight to false like this:

export default defineNuxtConfig({
  devtools: { enabled: true },
  modules: ['@pinia/nuxt', '@nuxtjs/tailwindcss'],
  tailwindcss: {
    config: {
      corePlugins: { preflight: false }
    }
  },
})

Let me know if that works for you.