Closed bondydaa closed 7 years ago
If you haven't figured it out already....I have no idea off the top of my head, nothing is jumping out at me though. I've only just started using Vue 2, so I'm unsure how the template compiler and loaders have changed. Will let you know what I see when I start upgrading to Vue 2.
I wasn't able to find out what the issue was. My best guess is there was some type of incompatibility for vue2 compilers and webpack 1.
Most other vue 2 examples I saw around used webpack 2. I tried to take the webpack config you have setup to use it with webpack 2 but that didn't work at all 😦 .
Unfortunately, I'm no longer able to work on the project I was on (changed jobs) but if I start another electron based project I'll most likely stick with your boilerplate and see if I can help out.
Alrighty, thanks for the update. I'm closing for now, but feel free to reopen it if arises again in the future.
Having the same trouble. In case, you have figured out... please share how ? :)
I updated my repo so that we could use vue 2.0 which required a change the to
build/webpack.dev-main.conf.js
so that Vue would render our templates again. The app builds and will render html and JS but now no styles are being included and there are no errors being thrown in my shell or devtools/browser console.Below you'll find my updated files and screenshots to hopefully help get you enough info but let me know if there is something else you need.
updated webpack.dev-main.conf.js:
piece I added to get vue 2.0 to render properly:
package.json
installed packages:
successful shell output:
main.js:
App.vue:
screenshot of electron after build, as you can see body should have a blue background based on above and there are no
<style>
tags in the head:It seems like a webpack/loader issue but I'm not familiar enough with either of those and it looks like all of the vue-loader/vue-style-loader docs use webpack2 which I've already found out isn't the easiest thing to upgrade to.
Any help/guidance would be greatly appreciated.