Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: set cssPath false to disable adding the CSS #362

Merged
merged 1 commit into from
Jun 22, 2021
Merged

feat: set cssPath false to disable adding the CSS #362

merged 1 commit into from
Jun 22, 2021

Conversation

Ricklin90085
Copy link
Contributor

@Ricklin90085 Ricklin90085 commented Jun 19, 2021

resolve #107
Set the cssPath: false to disable adding the CSS, then user can manually add the tailwind.css file in the nuxt.config.js CSS option.

export default {
  css: [
    '@/assets/style/tailwind.css'
  ],
  tailwindcss: {
    cssPath: false
  }
}

Copy link
Collaborator

atinux commented Jun 21, 2021

I see, why not using this?

export default {
  tailwindcss: {
    cssPath: '@/assets/style/tailwind.css'
  }
}

@Ricklin90085
Copy link
Contributor Author

Ricklin90085 commented Jun 21, 2021

Hi @atinux
Because I am trying to use tailwindcss and other ui framework (such as bootstrapVue, elementUI and etc.) together.
But here I have a question is the injection order of tailwind.css is before other css of ui framework, I am not able to use class of tailwindscc to override ui framework’s style.
If cssPath: false works, I can adjust the injection order of CSS then override ui framework’s style by class of tailwindcss.

export default {
  css: [
    '@/assets/style/bootstrap.css',
    '@/assets/style/tailwind.css'
  ],
  tailwindcss: {
    cssPath: false
  }
}

I think is better to maintain the flexibility of adjustment.
Thanks for your reply.

@atinux atinux merged commit 695d068 into nuxt-modules:main Jun 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

nuxt config.css priority High than module config
2 participants