add alpha branch

This commit is contained in:
就眠儀式
2022-01-27 16:18:16 +08:00
parent 5c79b2b9ba
commit 5ea8b7bf7c
103 changed files with 577 additions and 474 deletions

40
build.all.ts Normal file
View File

@@ -0,0 +1,40 @@
import { UserConfigExport } from 'vite'
import vue from '@vitejs/plugin-vue'
import { resolve } from 'path'
export default (): UserConfigExport => {
return {
publicDir: false,
resolve: {
alias: [
{
find: '@',
replacement: resolve(__dirname, './')
}
]
},
plugins: [
vue(),
],
build: {
cssCodeSplit: false,
outDir: 'lib',
emptyOutDir: true,
lib: {
entry: resolve(__dirname, './src/index.ts'),
name: 'layui-vue',
formats: ['es'],
fileName: (name) => `index.js`
},
rollupOptions: {
output: {
globals: {
vue: 'Vue'
},
assetFileNames: 'index.css',
},
external: ['vue', 'vue-router']
}
}
}
}