vue-cli配置

// 全局配置.vuerc 的 JSON 文件 也可以使用 vue config 命令来审查或修改全局的 CLI 配置
// vue.config.js 会被@vue/cli-service自动加载,
// 也可已使用package.json中vue字段配置

// 两种配置模式------------------------------------------------------------------------------
// /**
//  * @type {import('@vue/cli-service').ProjectOptions}
//  */

// module.exports = {
   
//     // 选项...
// }

// 或者
// const { defineConfig } = require('@vue/cli-service')

// module.exports = defineConfig({
   
//     // 选项
// })

const {
    defineConfig } = require('@vue/cli-service')

module.exports = defineConfig({
   
    baseUrl,//从 Vue CLI 3.3 起已弃用,请使用publicPath
    publicPath: process.env.NODE_ENV === 'production' ? '/production-sub-path/' : '/', //Type: string,Default: '/'.  部署应用包时的基本 URL。https://www.my-app.com/
    outputDir: 'dist',   //Type: string 当运行 vue-cli-service build 时生成的生产环境构建文件的目录。注意目标目录的内容在构建之前会被清除 (构建时传入 --no-clean 可关闭该行为)。
    assetsDir: '',       //Type: string  放置生成的静态资源 (js、css、img、fonts) 的 (相对于 outputDir 的) 目录。
    indexPath: 
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值