I have a Vuejs/Firebase app that I am deploying through Firebase Hosting. My problem is that in the the deployed version, in the Sources tab of the Chrome Dev tools, I find a folder called guava, which is the name of the app's version, that contains most of my dev files, including the src folder with all vue components and my js files (as shown in the picture below).
I have spent hours debugging this without success. This is what I have tried:
{
"firestore": {
"rules": "firestore.rules",
"indexes": "firestore.indexes.json"
},
"hosting": {
"public": "dist",
"target": "web",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**",
"**/guava/**",
"**/src/**"
],
"rewrites": [
{
"source": "/guava{,/**}",
"destination": "/404.html"
}
]
},
"storage": {
"rules": "storage.rules"
},
"functions": {
"source": "functions"
},
"extensions": {
}
}
Thanks for any help!
You can disable source maps from being generated when producing production builds by using the productionSourceMap
config element in your vue.config.js
file:
// vue.config.js
module.exports = {
...
productionSourceMap: false,
...
};