1 Star 0 Fork 873

nwpuxiaozhi/AS-Editor

forked from 孤傲/AS-Editor 
Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
vue.config.js 845 Bytes
Copy Edit Raw Blame History
孤傲 authored 2021-11-25 16:45 . feat: 更换上传图片地址
const path = require('path') //引入path模块
function resolve(dir) {
return path.join(__dirname, dir) //path.join(__dirname)设置绝对路径
}
module.exports = {
publicPath: './',
outputDir: 'AS-Editor',
assetsDir: 'static',
productionSourceMap: false,
devServer: {
open: true,
proxy: {
'/api': {
target: 'http://api.aseditor.fun/',
ws: true,
changeOrigin: true,
pathRewrite: {
'^/api': '',
},
},
},
},
chainWebpack: (config) => {
config.resolve.alias
.set('@', resolve('./src'))
.set('components', resolve('./src/components'))
.set('css', resolve('./src/assets/css'))
.set('iconfont', resolve('./src/assets/iconfont'))
.set('img', resolve('./src/assets/images'))
.set('utils', resolve('./src/utils'))
},
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/nwpuxiaozhi/as-editor.git
git@gitee.com:nwpuxiaozhi/as-editor.git
nwpuxiaozhi
as-editor
AS-Editor
master

Search