Skip to content

Commit 76bce07

Browse files
committed
chore: wip
1 parent d282539 commit 76bce07

File tree

4 files changed

+6
-74
lines changed

4 files changed

+6
-74
lines changed

storage/framework/stacks/src/vite/src/desktop.ts

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ import type { ViteConfig } from '@stacksjs/types'
22
import { path as p } from '@stacksjs/path'
33
import { alias } from '@stacksjs/alias'
44
import generateSitemap from 'vite-ssg-sitemap'
5-
import Components from 'unplugin-vue-components/vite'
6-
import { layouts, pages, uiEngine, autoImports, cssEngine } from './stacks'
5+
import { layouts, pages, uiEngine, autoImports, cssEngine, components } from './stacks'
76
import { defineConfig } from '.'
87

98
export const pagesConfig = {
@@ -22,21 +21,13 @@ export const pagesConfig = {
2221
},
2322

2423
plugins: [
25-
uiEngine(),
26-
Components({
27-
// allow auto load markdown components under `./src/components/`
28-
extensions: ['stx', 'vue', 'md'],
29-
// allow auto import and register components used in markdown
30-
include: [/\.stx$/, /\.stx\?stx/, /\.vue$/, /\.vue\?vue/, /\.md$/],
31-
dts: p.projectStoragePath('framework/dashboard/components.d.ts'),
32-
}),
33-
34-
autoImports(),
35-
3624
pages({
3725
routesFolder: p.projectStoragePath('framework/dashboard/src/pages'),
3826
}),
3927

28+
uiEngine(),
29+
components(),
30+
autoImports(),
4031
cssEngine(),
4132

4233
layouts({

storage/framework/stacks/src/vite/src/music.ts

Lines changed: 0 additions & 57 deletions
This file was deleted.

storage/framework/stacks/src/vite/src/plugin/layouts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export function layouts(options?: LayoutOptions, isMain = true) {
1111
return Layouts(options)
1212

1313
return Layouts({
14-
layoutsDir: p.resourcesPath('layouts'),
14+
layoutsDirs: p.resourcesPath('layouts'),
1515
defaultLayout: p.resourcesPath('layouts/default.stx'),
1616
exclude: [
1717
p.resourcesPath('layouts/mails'),

storage/framework/stacks/src/vite/src/views.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,10 @@ import generateSitemap from 'vite-ssg-sitemap'
55
import { server } from '@stacksjs/server'
66
import { alias } from '@stacksjs/alias'
77
import { config } from '@stacksjs/config'
8-
9-
// import { i18n } from './plugin/i18n'
10-
// import AutoImport from 'unplugin-auto-import/vite'
118
import VueMacros from 'unplugin-vue-macros/vite'
129
import VueRouter from 'unplugin-vue-router/vite'
1310
import { layouts, autoImports, components, cssEngine, devtools, markdown, pwa } from './stacks'
11+
// import { i18n } from './plugin/i18n'
1412
// import { fonts } from './plugin/fonts'
1513

1614
// const isMaintenanceMode = config.app.maintenanceMode

0 commit comments

Comments
 (0)