35 lines
933 B
JavaScript
35 lines
933 B
JavaScript
/*
|
|
* @Author: Haijun Zhang
|
|
* @Date: 2022-11-03 15:30:04
|
|
* @LastEditTime: 2023-05-25 16:10:45
|
|
* @LastEditors: Haijun Zhang
|
|
* @Description:
|
|
* @FilePath: \cmc-web\webs\cop-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: 'cop-web',
|
|
runtimeCompiler: true,
|
|
devServer: {
|
|
port: 8082,
|
|
},
|
|
}),
|
|
configureWebpack: (config) => {
|
|
const configs = commonConfigureWebpack(name)
|
|
return {
|
|
...configs,
|
|
}
|
|
},
|
|
chainWebpack: (config) => {
|
|
commonChainWebpack(config, resolve)
|
|
config.resolve.alias.set('task', resolve('src/views/task')).set('CodeMirror', 'codemirror').set('@services', resolve('src/services')).set('jQuery', 'jquery')
|
|
},
|
|
}
|