1.依赖插件等无需每次打包都重新打包
vite.config.js文件中配置
export default () => { return { build: { sourcemap: false, manifest: true, rollupOptions: { output: { manualChunks(id){ // 优化 依赖单独打包 if(id.includes('node.modules')){ return 'vendor' } } } }, } } }
标签:vue,return,依赖,优化,id,打包 From: https://www.cnblogs.com/foxing/p/18064981