mlightcad
Version:
A highly customizable standalone view cube addon for three.js
22 lines (20 loc) • 453 B
text/typescript
import { resolve } from 'path'
import { defineConfig, Alias } from 'vite'
export default defineConfig(({ command }) => {
const aliases: Alias[] = []
if (command === 'serve') {
aliases.push({
find: '@mlightcad/three-viewcube',
replacement: resolve(__dirname, '../three-viewcube/src')
})
}
return {
base: './',
resolve: {
alias: aliases
},
build: {
outDir: 'dist'
}
}
})