Skip to content

Commit

Permalink
feat(bindgen): Add vite.config.js
Browse files Browse the repository at this point in the history
  • Loading branch information
thewtex committed Jan 18, 2023
1 parent d440f49 commit 5928148
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/bindgen/typescript-resources/vite.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { defineConfig } from 'vite'
import { viteStaticCopy } from 'vite-plugin-static-copy'
import path from 'path'

export default defineConfig({
root: path.join('test', 'browser'),
build: {
outDir: '../../demo',
emptyOutDir: true,
},
plugins: [
// put lazy loaded JavaScript and Wasm bundles in dist directory
viteStaticCopy({
targets: [
{ src: '../../dist/pipelines/*', dest: 'pipelines' },
],
})
],
})

0 comments on commit 5928148

Please sign in to comment.