layui/example/vite.config.ts
2022-03-31 03:37:01 +08:00

16 lines
362 B
TypeScript

import path from 'path'
import { defineConfig } from 'vite'
import plugins from './src/plugin/common-plugins'
import pkg from '../package.json'
export default defineConfig({
resolve: {
alias: {
'/@src': path.resolve(__dirname, './src'),
},
},
define: {
'import.meta.env.LAYUI_VUE_VERSION': JSON.stringify(pkg.version),
},
plugins,
})