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.48k stars 1.55k forks source link

配置多页面 路由组件进行懒加载 加载的js路径不对 #954

Closed w493189140 closed 5 years ago

w493189140 commented 5 years ago

多页面配置 image webpack.renderer.config.js文件 image 路由配置 (用import from "" 是没有问题的,当按需加载就出问题了) image package.json 文件 image 问题截图 image

w493189140 commented 5 years ago

已解决 方案是加 publicPath:'../'