layui/example/vite.config.ts

16 lines
362 B
TypeScript
Raw Normal View History

2021-09-27 06:09:33 +08:00
import path from 'path'
import { defineConfig } from 'vite'
import plugins from './src/plugin/common-plugins'
2022-03-31 03:37:01 +08:00
import pkg from '../package.json'
2021-09-27 06:09:33 +08:00
export default defineConfig({
resolve: {
alias: {
2022-01-27 16:18:16 +08:00
'/@src': path.resolve(__dirname, './src'),
2021-09-27 06:09:33 +08:00
},
},
2022-03-31 03:37:01 +08:00
define: {
'import.meta.env.LAYUI_VUE_VERSION': JSON.stringify(pkg.version),
},
2021-09-27 06:09:33 +08:00
plugins,
2022-01-27 16:18:16 +08:00
})