cmc-web/webs/cos-web/vue.config.js

34 lines
767 B
JavaScript
Raw Normal View History

2024-08-20 12:11:31 +00:00
/*
* @Author: Haijun Zhang
* @Date: 2022-11-03 15:30:04
* @LastEditTime: 2022-11-11 14:12:18
* @LastEditors: Haijun Zhang
* @Description:
* @FilePath: \cmc-web\webs\cos-web\vue.config.js
*/
const path = require('path')
const { name } = require('./package')
const { getCommonConifg, commonChainWebpack, commonConfigureWebpack } = require('../../build/base')
function resolve(dir) {
return path.join(__dirname, dir)
}
module.exports = {
...getCommonConifg({
outputDir: 'cos-web',
runtimeCompiler: true,
devServer: {
port: 8085
}
}),
configureWebpack: (config) => {
const configs = commonConfigureWebpack(name)
return {
...configs
}
},
chainWebpack: (config) => {
commonChainWebpack(config, resolve)
}
}