feat: use virtual: prefix formate in virtual modules

This commit is contained in:
hanlee 2021-03-11 01:41:25 +09:00
parent 7e09d5b341
commit e5dffdb8d5
3 changed files with 7 additions and 7 deletions

View File

@ -31,7 +31,7 @@
"vite-plugin-components": "^0.8.0",
"vite-plugin-icons": "^0.3.2",
"vite-plugin-md": "^0.6.1",
"vite-plugin-pages": "^0.6.1",
"vite-plugin-pages": "^0.7.0",
"vite-plugin-pwa": "^0.5.6",
"vite-plugin-vue-layouts": "^0.2.2",
"vite-plugin-windicss": "^0.7.2",

View File

@ -24,7 +24,7 @@ devDependencies:
vite-plugin-components: 0.8.0_vite@2.0.5
vite-plugin-icons: 0.3.2_70f20bcde5195e446154db5ed4ff8b90
vite-plugin-md: 0.6.1_bf48963773c10f09e90707239d00d505
vite-plugin-pages: 0.6.1_vite@2.0.5+vue@3.0.7
vite-plugin-pages: 0.7.0_vite@2.0.5+vue@3.0.7
vite-plugin-pwa: 0.5.6
vite-plugin-vue-layouts: 0.2.2_vite@2.0.5
vite-plugin-windicss: 0.7.2_vite@2.0.5
@ -5073,7 +5073,7 @@ packages:
vite: ^2.0.0-beta.1
resolution:
integrity: sha512-dJ06wlic1Gprb+PLpTpwkoufm+/5wtBUwSIMvMa9mql34eqY+DZpOdz7s2FpdRAe/6XSRFH4oHVp0xfUnZp52Q==
/vite-plugin-pages/0.6.1_vite@2.0.5+vue@3.0.7:
/vite-plugin-pages/0.7.0_vite@2.0.5+vue@3.0.7:
dependencies:
'@vue/compiler-sfc': 3.0.7_vue@3.0.7
chalk: 4.1.0
@ -5092,7 +5092,7 @@ packages:
vite: ^2.0.0
vue: ^3.0.0
resolution:
integrity: sha512-BYOC7gmRb5q5CdTMnAb5o3u99uuBxJeoHq0xImtQtHFB9qcnDf7rh1QOSKSTqcLC0nKO1K5oUVBRndv+QH7LKA==
integrity: sha512-nClkzBs+XPIqvlQuqqvukn/5igNkJ8i17/5aP6L6mfebhmnyngpcmSXrzuwnbEgP8VWq27L6+gLFniKWCRBrbg==
/vite-plugin-pwa/0.5.6:
dependencies:
debug: 4.3.2
@ -5603,7 +5603,7 @@ specifiers:
vite-plugin-components: ^0.8.0
vite-plugin-icons: ^0.3.2
vite-plugin-md: ^0.6.1
vite-plugin-pages: ^0.6.1
vite-plugin-pages: ^0.7.0
vite-plugin-pwa: ^0.5.6
vite-plugin-vue-layouts: ^0.2.2
vite-plugin-windicss: ^0.7.2

View File

@ -1,7 +1,7 @@
import 'windi.css'
import 'virtual:windi.css'
import './styles/main.css'
import { ViteSSG } from 'vite-ssg'
import generatedRoutes from 'pages-generated'
import generatedRoutes from 'virtual:generated-pages'
import { setupLayouts } from 'layouts-generated'
import App from './App.vue'