SimulatedGREG / electron-vue

An Electron & Vue.js quick start boilerplate with vue-cli scaffolding, common Vue plugins, electron-packager/electron-builder, unit/e2e testing, vue-devtools, and webpack.
https://simulatedgreg.gitbooks.io/electron-vue/content/
MIT License
15.47k stars 1.54k forks source link

请问下,为什么把vue放到dependencies中 #1005

Open meteor199 opened 4 years ago

meteor199 commented 4 years ago

Found an issue or bug with electron-vue? Tell me all about it!

Questions regarding how to use electron or vue are likely to be closed as they are not direct issues with this boilerplate. Please seek solutions from official documentation or their respective communities.

Describe the issue / bug.

# 请问下,为什么把vue放到dependencies中,放到dependencies的包会被electron-builder复制到node_modules中。既然render的webpack打包时已经包含了vue,为什么还要再复制一份到node_modules中呢?

How can I reproduce this problem?

#

If visual, provide a screenshot.

#

Tell me about your development environment.

If you are looking to suggest an enhancement or feature, then feel free to remove everything above.

mrsai commented 4 years ago

减小打包的体积。

meteor199 commented 4 years ago

不是放到devDependencies中,才能减少打包体积吗

mrsai commented 4 years ago

不是放到devDependencies中,才能减少打包体积吗

我看错了。