Skip to content

Commit

Permalink
fix: publish assets
Browse files Browse the repository at this point in the history
  • Loading branch information
shanimal08 committed Jan 31, 2025
1 parent 0216521 commit 51c46e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
11 changes: 1 addition & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,12 @@
"type": "module",
"exports": {
".": {
"/BASE.buf": "./assets/models/BASE.buf",
"/BOX.buf": "./assets/models/BOX.buf",
"/COIN.buf": "./assets/models/COIN.buf",
"/COIN_PLACEMENT.buf": "./assets/models/COIN_PLACEMENT.buf",
"/LOSE_ANIMATION.buf": "./assets/models/LOSE_ANIMATION.buf",
"/gobo.jpg": "./assets/textures/gobo.jpg",
"/LDR_RGB1_0.png": "./assets/textures/LDR_RGB1_0.png",
"/matcap_gold.jpg": "./assets/textures/matcap_gold.jpg",
"default": "./dist/main.js"
}
},
"main": "dist/main.js",
"files": [
"/dist",
"/assets"
"/dist"
],
"scripts": {
"dev": "vite",
Expand Down
3 changes: 1 addition & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ export default defineConfig({
},
},
plugins: [dts({ include: ['lib'] }), tsconfigPaths(), eslint({ eslintOptions: { cache: false, fix: true } })],
assetsInclude: ['**/*.buf', '**/*.glsl', '**/*.frag', '**/*.vert', '**/*.jpg', '**/*.png'],
build: {
copyPublicDir: false,
lib: {
entry: resolve(__dirname, 'lib/main.ts'),
formats: ['es'],
Expand All @@ -30,7 +30,6 @@ export default defineConfig({
input: { main: resolve(__dirname, 'lib/main.ts') },
output: {
entryFileNames: '[name].js',
assetFileNames: 'assets/[dirname]/[name][ext]',
globals: {
'three': 'Three',
'min-signal': 'MinSignal',
Expand Down

0 comments on commit 51c46e0

Please sign in to comment.