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

33 lines
740 B
JavaScript

/*
* @Author: Haijun Zhang
* @Date: 2022-11-03 15:30:04
* @LastEditTime: 2022-11-11 14:14:34
* @LastEditors: Haijun Zhang
* @Description:
* @FilePath: \cmc-web\webs\cms-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: 'cms-web',
devServer: {
port: 8084
}
}),
configureWebpack: (config) => {
const configs = commonConfigureWebpack(name)
return {
...configs
}
},
chainWebpack: (config) => {
commonChainWebpack(config, resolve)
}
}