mirror of
https://github.com/zh-lx/pinyin-pro.git
synced 2026-03-13 09:51:38 +08:00
23 lines
397 B
TypeScript
23 lines
397 B
TypeScript
import { defineConfig } from 'vite';
|
|
import path from 'path';
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
build: {
|
|
lib: {
|
|
entry: ['lib/index.ts'],
|
|
formats: ['es', 'cjs'],
|
|
fileName: 'index',
|
|
name: 'pinyinPro',
|
|
},
|
|
|
|
minify: true,
|
|
emptyOutDir: true,
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
'@': path.resolve(__dirname, './lib'),
|
|
},
|
|
},
|
|
});
|