Skip to content

Commit

Permalink
chore: nuxt remove other codes
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr.Mao committed Dec 13, 2023
1 parent ac504ef commit 48e427a
Show file tree
Hide file tree
Showing 6 changed files with 564 additions and 20 deletions.
1 change: 0 additions & 1 deletion packages/vue3-pixi-nuxt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
},
"dependencies": {
"@antfu/utils": "^0.7.2",
"@nuxt/devtools-kit": "^1.0.5",
"@nuxt/kit": "^3.8.2",
"pixi-projection": "^1.0.0",
"sirv": "^2.0.3",
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 2 additions & 0 deletions packages/vue3-pixi-nuxt/src/devtools.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable @typescript-eslint/ban-ts-comment */
import { existsSync } from 'fs'
import type { Nuxt } from 'nuxt/schema'
import type { Resolver } from '@nuxt/kit'
Expand All @@ -15,6 +16,7 @@ export function setupDevToolsUI(nuxt: Nuxt, resolver: Resolver) {
const sirv = await import('sirv').then(r => r.default || r)
server.middlewares.use(
DEVTOOLS_UI_ROUTE,
// @ts-expect-error
sirv(clientPath, { dev: true, single: true }),
)
})
Expand Down
Loading

0 comments on commit 48e427a

Please sign in to comment.