When setting up my Vue application using the Vue cli, I noticed that there was already a babel.config.js file in the directory created by the cli. However, I also added a vue.config.js file. I’m curious about the difference between these two files and whether or not they can be combined. The fact that they both end with "config.js" makes me wonder if they have any similarities.
Here is my babel.config.js file:
module.exports = {
presets: [
'@vue/cli-plugin-babel/preset'
]
}
And here is my vue.config.js file:
module.exports = {
devServer: {
proxy: {
'^/users': {
target: 'http://localhost:5000',
ws: true,
changeOrigin: true
},
'^/api': {
target: 'http://localhost:5000',
ws: true,
changeOrigin: true
}
}
}
};