"git@gitlab.aishuhong.com:zhang_jianguo/onn.git" did not exist on "2589b9883ce0f84b58fd278c394122642ebc81a5"
Commit 459094c9 authored by 柳 佳乐's avatar 柳 佳乐
Browse files

first

parents
Pipeline #35 canceled with stages
const { defineConfig } = require('@vue/cli-service')
const path = require('path')
function resolve(dir) {
return path.join(__dirname, dir)
}
module.exports = defineConfig({
transpileDependencies: true,
lintOnSave: false,
productionSourceMap: false,
devServer: {
open: true,
https: false,
hot:true,
host: '0.0.0.0',
proxy: {
"/api": {
target: 'http://192.168.3.6:8000',//代理地址 凡是使用/api
changeOrigin: true,//允许跨域请求
secure: false,
pathRewrite: { //重写路径 替换请求地址中的指定路径
['^/api']: '/' //将请求地址中的api替换为空
}
}
},
client: {
overlay: false
}
},
configureWebpack: {
resolve: {
alias: {
'@': resolve('src')
},
fallback: {
path: require.resolve("path-browserify"),
fs:false,
crypto: false,
},
}
},
css:{
loaderOptions:{
sass:{
additionalData:`@import "./src/assets/scss/style.scss";`
}
}
}
})
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment