1 Star 0 Fork 4

DJun-小丁/vue3-tinymce

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
vite.config.js 688 Bytes
一键复制 编辑 原始数据 按行查看 历史
青山依旧 提交于 4年前 . add comp build
import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
const path = require('path');
// https://vitejs.dev/config/
export default defineConfig({
plugins: [vue()],
// npm publish --access public
build: {
lib: {
entry: path.resolve(__dirname, 'packages/Vue3Tinymce/index.js'),
name: 'Vue3Tinymce',
fileName: format => `vue3-tinymce.${format}.js`
},
rollupOptions: {
// 确保外部化处理那些你不想打包进库的依赖
external: ['vue'],
output: {
// 在 UMD 构建模式下为这些外部化的依赖提供一个全局变量
globals: {
vue: 'Vue'
}
}
}
}
});
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/djunxp/vue3-tinymce.git
git@gitee.com:djunxp/vue3-tinymce.git
djunxp
vue3-tinymce
vue3-tinymce
master

搜索帮助