Skip to content

Commit

Permalink
fix: build include babylon-vrm-loader
Browse files Browse the repository at this point in the history
  • Loading branch information
YunYouJun committed Jul 16, 2023
1 parent db27e0f commit dcf431c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/vrm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"url": "https://github.com/YunYouJun/advjs"
},
"scripts": {
"build": "vite-ssg build",
"build": "vite build",
"dev": "vite --port 3335 --open --host",
"preview": "vite preview",
"preview-https": "serve dist",
Expand Down
3 changes: 3 additions & 0 deletions packages/vrm/public/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# public

- `models/vrm/alicia-solid.vrm`
6 changes: 5 additions & 1 deletion packages/vrm/unocss.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ import { presetAdv } from '../unocss/src'
const safelist = 'm-auto text-left'.split(' ')

export default defineConfig({
include: ['**/*.{md,vue}', '../theme-default/**/*.{md,vue}'],
content: {
pipeline: {
include: ['**/*.{md,vue}', '../theme-default/**/*.{md,vue}'],
},
},

presets: [
presetUno(),
Expand Down
2 changes: 1 addition & 1 deletion packages/vrm/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default defineConfig((config) => {

build: {
rollupOptions: {
external: ['/@advjs/configs', 'babylon-vrm-loader'],
external: ['/@advjs/configs'],
},
},

Expand Down

1 comment on commit dcf431c

@vercel
Copy link

@vercel vercel bot commented on dcf431c Jul 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.