egoist / vuepack

:package: A modern starter which uses Vue 2, Vuex, Vue-router and Webpack 2 (and even Electron)
http://vuepack.surge.sh
MIT License
2.43k stars 202 forks source link

Base project prod build packs up entire project folder #144

Open capttrousers opened 7 years ago

capttrousers commented 7 years ago

Scaffold the base project:

$ vue init egoist/vuepack test && cd test
$ npm install && npm run dev

Open the Sources tab in Chrome, and the entire client folder with the full path is shown. I'd expect it to obfuscate that or something, is that expected behavior?

egoist commented 7 years ago

that's the expected behavior, why do you want to obfuscate that?

capttrousers commented 7 years ago

There's three aspects I'm thinking of:

I am just getting started with webpack and such, but I was under the impression that "uglify" the js meant variable names are replaced with random values, so MySpecialVariable gets turned into acufq everywhere or something like that. Is there ways to accomplish some of this obfuscation with webpack settings?

capttrousers commented 7 years ago

I understand that the entire client directory will end up being sent to the client's browser but I guess I'm confused as to the level of obfuscation possible.