openc3/templates/widget/vue.config.js
const path = require('path')
module.exports = {
css: {
extract: false,
},
filenameHashing: false,
transpileDependencies: ['vuetify'],
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'])
},
}