File tree Expand file tree Collapse file tree 5 files changed +27
-20
lines changed Expand file tree Collapse file tree 5 files changed +27
-20
lines changed Original file line number Diff line number Diff line change 47
47
"prepublishOnly" : " bun --bun run build"
48
48
},
49
49
"peerDependencies" : {
50
+ "unplugin-vue-router" : " ^0.6.4" ,
50
51
"vue-router" : " ^4.2.4"
51
52
},
52
53
"dependencies" : {
54
+ "unplugin-vue-router" : " ^0.6.4" ,
53
55
"vue-router" : " ^4.2.4"
54
56
},
55
57
"devDependencies" : {
Original file line number Diff line number Diff line change 1
- import fs from 'fs' ;
2
- import path from 'path' ;
3
- import { promisify } from 'util' ;
1
+ import fs from 'node: fs' ;
2
+ import path from 'node: path' ;
3
+ import { promisify } from 'node: util' ;
4
4
import { MiddlewareType } from '@stacksjs/types' ;
5
-
5
+
6
6
export class Middleware implements MiddlewareType {
7
7
name : string
8
8
priority : number
Original file line number Diff line number Diff line change 59
59
"@julr/unocss-preset-forms" : " ^0.0.5" ,
60
60
"@stacksjs/build" : " workspace:*" ,
61
61
"@stacksjs/config" : " workspace:*" ,
62
+ "@stacksjs/router" : " workspace:*" ,
62
63
"@stacksjs/vite-plugin-vue-layouts" : " workspace:*" ,
63
64
"@unocss/transformer-compile-class" : " ^0.55.7" ,
64
65
"pinia" : " ^2.1.6" ,
65
66
"unhead" : " ^1.5.1" ,
66
67
"unocss" : " ^0.55.7" ,
67
- "unplugin-vue-router" : " ^0.6.4" ,
68
68
"vue" : " ^3.3.4" ,
69
69
"vue-tsc" : " ^1.8.8"
70
70
},
75
75
"@julr/unocss-preset-forms" : " ^0.0.5" ,
76
76
"@stacksjs/build" : " workspace:*" ,
77
77
"@stacksjs/config" : " workspace:*" ,
78
+ "@stacksjs/router" : " workspace:*" ,
78
79
"@stacksjs/vite-plugin-vue-layouts" : " workspace:*" ,
79
80
"@unocss/transformer-compile-class" : " ^0.55.7" ,
80
81
"pinia" : " ^2.1.6" ,
81
82
"unhead" : " ^1.5.1" ,
82
83
"unocss" : " ^0.55.7" ,
83
- "unplugin-vue-router" : " ^0.6.4" ,
84
84
"vue" : " ^3.3.4" ,
85
85
"vue-tsc" : " ^1.8.8"
86
86
},
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { alias } from '@stacksjs/alias'
5
5
import { defineConfig } from './'
6
6
import generateSitemap from 'vite-ssg-sitemap'
7
7
8
- export const pagesConfig : ViteConfig = {
8
+ export const pagesConfig = {
9
9
root : p . projectStoragePath ( 'framework/web' ) ,
10
10
envDir : p . projectPath ( ) ,
11
11
envPrefix : 'FRONTEND_' ,
@@ -14,21 +14,26 @@ export const pagesConfig: ViteConfig = {
14
14
alias,
15
15
} ,
16
16
17
+ server : {
18
+ host : 'stacks.test' ,
19
+ port : 3333 ,
20
+ } ,
21
+
17
22
plugins : [
18
23
// preview(),
19
24
uiEngine ( ) ,
20
- pages ( {
21
- routesFolder : [ p . resourcesPath ( 'views' ) ] ,
22
- } ) ,
23
- cssEngine ( ) ,
24
- components ( ) ,
25
- layouts ( {
26
- layoutsDirs : p . resourcesPath ( 'layouts' ) ,
27
- } ) ,
28
- // i18n(),
29
- autoImports ( ) ,
30
- // pwa(),
31
- inspect ( ) ,
25
+ // pages({
26
+ // routesFolder: [p.resourcesPath('views')],
27
+ // }),
28
+ // cssEngine(),
29
+ // components(),
30
+ // layouts({
31
+ // layoutsDirs: p.resourcesPath('layouts'),
32
+ // }),
33
+ // // i18n(),
34
+ // autoImports(),
35
+ // // pwa(),
36
+ // inspect(),
32
37
] ,
33
38
34
39
// https://github.com/antfu/vite-ssg
@@ -42,7 +47,7 @@ export const pagesConfig: ViteConfig = {
42
47
// TODO: workaround until they support native ESM
43
48
noExternal : [ 'workbox-window' , / v u e - i 1 8 n / ] ,
44
49
} ,
45
- }
50
+ } satisfies ViteConfig
46
51
47
52
export default defineConfig ( ( { command } ) => {
48
53
if ( command === 'serve' )
You can’t perform that action at this time.
0 commit comments