Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm run build之后,浏览器控制台Sources会有webpack文件夹,暴露了源代码 #191

Closed
noderan opened this issue Oct 10, 2016 · 5 comments

Comments

@noderan
Copy link

noderan commented Oct 10, 2016

image
请问怎么去除这个webpack文件夹,使其vue源代码不被暴露出来?

@adonishong
Copy link

from Build? from Dev?

@noderan
Copy link
Author

noderan commented Oct 11, 2016

@adonishong npm run build

@LinusBorg
Copy link
Member

the production build contains a sourcemap:

https://github.com/fundon/vue-admin/blob/master/build/webpack.prod.conf.js#L17

image

@adonishong
Copy link

@noderan run build has source-map... it is a feature, it is not a bug...

@loong-moon
Copy link

我已经关闭了productionSourceMap: false, 但还是资源中还是有webpack://

qq 20180706160041

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants