提交 56aafef5 编写于 作者: ylwdev's avatar ylwdev 💻

云IDE 暂时注释

上级 ea5210da
流水线 #6148 已通过 ,包含阶段
in 3 分12 秒
const { defineConfig } = require('@vue/cli-service') const { defineConfig } = require('@vue/cli-service')
const path = require('path'); const path = require('path');
function resolve(dir){ function resolve(dir){
return path.join(__dirname,dir)//设置绝对路径 return path.join(__dirname,dir)//设置绝对路径
} }
let publicPath = '/' let publicPath = '/'
if (process.env.NODE_ENV === 'production') { if (process.env.NODE_ENV === 'production') {
publicPath = 'https://csdn.gitcode.host/csdn-datav/' publicPath = 'https://csdn.gitcode.host/csdn-datav/'
} }
module.exports = defineConfig({ module.exports = defineConfig({
assetsDir: 'csdn-datav', assetsDir: 'csdn-datav',
transpileDependencies: true, transpileDependencies: true,
...@@ -19,6 +19,13 @@ module.exports = defineConfig({ ...@@ -19,6 +19,13 @@ module.exports = defineConfig({
'Access-Control-Allow-Origin': '*' 'Access-Control-Allow-Origin': '*'
} }
}, },
// devServer: {
// allowedHosts:'all',
// port: '3000',
// headers: {
// 'Access-Control-Allow-Origin': '*'
// }
// },
productionSourceMap: false, productionSourceMap: false,
chainWebpack: config => { chainWebpack: config => {
config.resolve.alias.set('@', resolve('src')) config.resolve.alias.set('@', resolve('src'))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册