/* * @Author: Haijun Zhang * @Date: 2022-11-03 15:30:04 * @LastEditTime: 2022-11-11 14:09:48 * @LastEditors: Haijun Zhang * @Description: * @FilePath: \cmc-web\webs\cmp-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: 'cmp-web', runtimeCompiler: true, devServer: { port: 8081 } }), configureWebpack: config => { const configs = commonConfigureWebpack(name) return { ...configs } }, chainWebpack: config => { commonChainWebpack(config, resolve) config.resolve.alias .set('resource-apply', resolve('src/views/resource-apply')) .set('@csc/api', resolve('src/services')) .set('filters', resolve('src/filters')) .set('openstack', resolve('src/views/openstack')) .set('vmware', resolve('src/views/vmware')) .set('manageone', resolve('src/views/manageone')) } }