Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
文件
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
vue.config.js 1.30 KB
Copy Edit Raw Blame History
tosign authored 2020-11-08 19:11 . 提交
/*
* @Author: your name
* @Date: 2020-10-17 20:24:45
* @LastEditTime: 2020-11-01 20:55:30
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: /artexpress.artron.net-trunk/Users/hanshi/Desktop/wangfei/心理/vue-heart/heart-vue/vue.config.js
*/
const path = require('path')
module.exports = {
css: {
loaderOptions: {
less: {
// 若使用 less-loader@5,请移除 lessOptions 这一级,直接配置选项。
// lessOptions: {
javascriptEnabled: true,
modifyVars: {
// 直接覆盖变量
// 或者可以通过 less 文件覆盖(文件路径为绝对路径)
// hack: `./src/assets/css/vant.less`,
hack: `true; @import "${path.resolve(__dirname, 'src/assets/css/vant.less')}";`
},
// },
},
},
},
devServer: {
// host: "0.0.0.0",
// port: 6661,
proxy: {
"/api": {
target: "http://129.204.200.168:9999/",
// ws: true,
changeOrigin: true,
pathRewrite: {
"^/api": "api"
},
}
}}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化