Skip to content

Commit

Permalink
fix(ui): always add global style
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Jan 5, 2022
1 parent ec17e31 commit 3951517
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/ui/src/nuxt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,7 @@ export default defineNuxtModule({
async setup (options, nuxt) {
addComponentsDir({ path: rPath('./components') })

const presetStyles = resolve(options.preset, 'styles.css')
if (existsSync(presetStyles)) {
nuxt.options.css.push(presetStyles)
}
nuxt.options.css.unshift(rPath('styles.css'))

if (!options.dev) {
nuxt.options.unocss = extendUnocssOptions(nuxt.options.unocss)
Expand Down
File renamed without changes.

0 comments on commit 3951517

Please sign in to comment.