feat: support options.css (#418)

This commit is contained in:
Anthony Fu 2021-08-09 23:42:52 +08:00 committed by GitHub
parent 52a2fff31c
commit fce147f177
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -0,0 +1 @@
<%= nuxt.options.css.map(i => `import '${i.src || i}';`).join('') %>

View File

@ -1,5 +1,6 @@
import { createSSRApp, createApp, nextTick } from 'vue'
import { createNuxt, applyPlugins, normalizePlugins, CreateOptions } from '@nuxt/app'
import '#build/css'
// @ts-ignore
import _plugins from '#build/plugins'
// @ts-ignore