openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-handbooks/vue.config.js
module.exports = {
publicPath: '/tools/handbooks',
outputDir: 'tools/handbooks',
filenameHashing: false,
transpileDependencies: ['vuetify'],
devServer: {
port: 2923,
headers: {
'Access-Control-Allow-Origin': '*',
},
client: {
webSocketURL: {
hostname: 'localhost',
pathname: '/tools/handbooks',
port: 2923,
},
},
},
configureWebpack: {
output: {
libraryTarget: 'system',
},
},
chainWebpack(config) {
config.module
.rule('js')
.use('babel-loader')
.tap((options) => {
return {
rootMode: 'upward',
}
})
config.module
.rule('vue')
.use('vue-loader')
.tap((options) => {
return {
prettify: false,
}
})
config.externals(['vue', 'vuetify', 'vuex', 'vue-router'])
},
}