DEV Community

Discussion on: Django + webpack + Vue.js: setting up a new project that’s easy to develop and deploy (part 1)

Collapse
 
zerkz profile image
Zack Whipkey • Edited

Few more updates...

You can add dynamicPublicPath=true to your hotClient require, and you will no longer have to set the path hardcoded (allowing your hotClient to go straight off of your dev server configuration. dynamicPublicPath will prefix anything you have path set to.

In the end, I had dynamicPublicPath=true&path=__webpack_hmr, because I was ending up with double slashes in the bundle reference url...probably could get around that somehow.

Collapse
 
ariera profile image
Alejandro Riera

Hey Zack! Thanks again for your feedback. I tested it and I had to add the path= __webpack_hmr part as well. I updated the post accordingly :)