Reputation: 83
I have made a Vue JS App using the Vue-cli 3. I then deployed the app to my website and everything was fine. When I looked at the source of the website I saw this webpack folder.
I asked myself why all my components are visible there. I searched a lot about this but didn't find anything for this. My question is if this is meant to be like this and if I could deploy my Vue JS App without my Components being visible in the source.
Upvotes: 3
Views: 733
Reputation: 29132
If you don't want source maps in production builds you should be able to turn them off using productionSourceMap: false
in your vue.config.js
.
https://cli.vuejs.org/config/#productionsourcemap
This setting can also be changed via the CLI UI by running vue ui
.
Upvotes: 6