3 Star 4 Fork 6

Gitee 极速下载/vue-page-stack

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/hezhongfeng/vue-page-stack
克隆/下载
vite.config.js 781 Bytes
一键复制 编辑 原始数据 按行查看 历史
import { resolve } from 'path';
import { defineConfig } from 'vite';
export default defineConfig({
build: {
lib: {
// Could also be a dictionary or array of multiple entry points
entry: resolve(__dirname, 'lib/main.js'),
name: 'VuePageStack',
// the proper extensions will be added
fileName: format => `vue-page-stack.${format}.js`,
formats: ['cjs', 'es', 'iife', 'umd']
},
sourcemap: false,
rollupOptions: {
// 确保外部化处理那些你不想打包进库的依赖
external: ['vue', 'vue-router'],
output: {
// 在 UMD 构建模式下为这些外部化的依赖提供一个全局变量
globals: {
vue: 'Vue',
'vue-router': 'vueRouter'
}
}
}
}
});
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/mirrors/vue-page-stack.git
git@gitee.com:mirrors/vue-page-stack.git
mirrors
vue-page-stack
vue-page-stack
master

搜索帮助