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

Nuxt: specifying uno config file doesn't work #2251

Closed
4 tasks done
Akryum opened this issue Feb 24, 2023 · 0 comments · Fixed by #2252
Closed
4 tasks done

Nuxt: specifying uno config file doesn't work #2251

Akryum opened this issue Feb 24, 2023 · 0 comments · Fixed by #2252

Comments

@Akryum
Copy link
Contributor

Akryum commented Feb 24, 2023

UnoCSS version

0.50.0

Describe the bug

Specifying a configFile using the nuxt module is ignored and the config file is never loaded.

import path from 'node:path'

export default defineNuxtConfig({
  modules: [
    '@unocss/nuxt',
  ],

  unocss: {
    configFile: path.resolve(__dirname, './some-path.ts'), // This is ignored
  },
})

Looks like the configFile option is not passed into the inlineConfig of loadConfig:
image
image

image

const { config: unoConfig } = await loadConfig<UserConfig>(process.cwd(), {}, [], options)

Reproduction

https://stackblitz.com/edit/github-2baac1?file=nuxt.config.ts,unocss2.config.ts

System Info

No response

Validations

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 a pull request may close this issue.

1 participant