1 Star 1 Fork 1

Halo / editor

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
vite.lib.config.js 797 Bytes
一键复制 编辑 原始数据 按行查看 历史
Ryan Wang 提交于 2022-02-19 22:51 . chore: remove unnecessary code
import { defineConfig } from 'vite'
import { createVuePlugin } from 'vite-plugin-vue2'
import Icons from 'unplugin-icons/vite'
import IconsResolver from 'unplugin-icons/resolver'
import Components from 'unplugin-vue-components/vite'
import path from 'path'
export default defineConfig({
plugins: [
createVuePlugin(),
Components({
resolvers: [IconsResolver()]
}),
Icons({
autoInstall: true
})
],
build: {
outDir: path.resolve(__dirname, 'dist/lib'),
lib: {
entry: path.resolve(__dirname, 'src/index.js'),
name: 'HaloEditor',
fileName: format => `halo-editor.${format}.js`
},
rollupOptions: {
external: ['vue'],
output: {
globals: {
vue: 'Vue'
}
}
},
sourcemap: true
}
})
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/halo-dev/editor.git
git@gitee.com:halo-dev/editor.git
halo-dev
editor
editor
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891