valaxy 0.3.11 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-ABPVSNYI.js → chunk-HRARZPSA.js} +17 -17
- package/dist/{chunk-QOANGHSR.mjs → chunk-N6HD5SHF.mjs} +17 -17
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/node/cli.js +3 -3
- package/dist/node/cli.mjs +2 -2
- package/dist/node/index.js +1 -1
- package/dist/node/index.mjs +1 -1
- package/package.json +3 -4
- package/src/client/composables/sidebar.ts +10 -8
- package/src/client/main.ts +5 -1
- package/src/client/modules/valaxy.ts +1 -1
- package/src/client/styles/common/markdown.scss +5 -1
- package/src/node/plugins/extendConfig.ts +1 -0
- package/src/node/plugins/preset.ts +0 -30
- package/src/node/server.ts +6 -4
- package/src/client/modules/pwa.ts +0 -12
package/src/node/server.ts
CHANGED
|
@@ -12,10 +12,12 @@ export async function createServer(
|
|
|
12
12
|
// default editor vscode
|
|
13
13
|
process.env.EDITOR = process.env.EDITOR || 'code'
|
|
14
14
|
|
|
15
|
-
const server = await createViteServer(
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
const server = await createViteServer(
|
|
16
|
+
mergeConfig(
|
|
17
|
+
viteConfig,
|
|
18
|
+
await createViteConfig(options, serverOptions),
|
|
19
|
+
),
|
|
20
|
+
)
|
|
19
21
|
|
|
20
22
|
return server
|
|
21
23
|
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { UserModule } from '~/types'
|
|
2
|
-
|
|
3
|
-
// https://github.com/antfu/vite-plugin-pwa#automatic-reload-when-new-content-available
|
|
4
|
-
export const install: UserModule = ({ isClient, router }) => {
|
|
5
|
-
if (!isClient)
|
|
6
|
-
return
|
|
7
|
-
|
|
8
|
-
router.isReady().then(async () => {
|
|
9
|
-
const { registerSW } = await import('virtual:pwa-register')
|
|
10
|
-
registerSW({ immediate: true })
|
|
11
|
-
})
|
|
12
|
-
}
|