1 Star 0 Fork 87

存在/chatai-vue

forked from 占书生/chatai-vue 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
vue.config.js 1.71 KB
一键复制 编辑 原始数据 按行查看 历史
占书生 提交于 2023-04-26 16:28 . 修复bug
module.exports = {
lintOnSave: false,
publicPath: './',
productionSourceMap: false,
outputDir: process.env.IS_LIB ? 'lib-dist' : 'dist',
css: {
extract: false
},
configureWebpack: {
module: {
rules: [
// 配置读取 *.md 文件的规则
// {
// test: /\.md$/,
// use: [
// { loader: "html-loader" },
// { loader: "markdown-loader", options: {} }
// ]
// }
]
}
},
devServer: {
disableHostCheck: true,
open: true,
before(app) {
app.use((req, res, next) => {
// 设置请求头
req.headers['Authorization'] = 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2ODMzNTU4OTYsInBheWxvYWQiOnsiaWQiOjE2NDY3Njg3NjMwNjU5OTUyNjQsImFkdmFuY2VkIjowfX0.f4ocqSbBtGXduHNTe2q-3vitC4euYi5_LbIFGsnK-bY';
next();
});
},
proxy: {
'/api': {
target: 'https://aide.51cto.com',
changeOrigin: true,
pathRewrite: {
'^/api': '/api'
}
}
},
},
chainWebpack: config => {
const svgRule = config.module.rule('svg')
svgRule.uses.clear()
svgRule
.test(/\.svg$/)
.use('svg-url-loader') // npm install --save-dev svg-url-loader
.loader('svg-url-loader')
// config.module.rule('md')
// .test(/\.md/)
// .use('vue-loader')
// .loader('vue-loader')
// .end()
// .use('vue-markdown-loader')
// .loader('vue-markdown-loader/lib/markdown-compiler')
// .options({
// raw: true
// })
// config.module
// .rule("images")
// .use("url-loader")
// .loader("url-loader")
// .tap(options => Object.assign(options, { limit: Infinity }));
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
HTML
1
https://gitee.com/sheyingtg/chatai-vue.git
git@gitee.com:sheyingtg/chatai-vue.git
sheyingtg
chatai-vue
chatai-vue
master

搜索帮助

D67c1975 1850385 1daf7b77 1850385