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

35 lines
891 B
JavaScript
Raw Permalink 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:08:29
* @LastEditors: Haijun Zhang
* @Description:
* @FilePath: \cmc-web\webs\ams-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: 'ams-web',
runtimeCompiler: true,
devServer: {
2024-08-21 01:17:14 +00:00
port: 8083,
},
2024-08-20 12:11:31 +00:00
}),
configureWebpack: (config) => {
const configs = commonConfigureWebpack(name)
return {
2024-08-21 01:17:14 +00:00
...configs,
2024-08-20 12:11:31 +00:00
}
},
chainWebpack: (config) => {
commonChainWebpack(config, resolve)
2024-08-21 01:17:14 +00:00
config.resolve.alias.set('task', resolve('src/views/task')).set('CodeMirror', 'codemirror').set('jQuery', 'jquery')
},
2024-08-20 12:11:31 +00:00
}