EvanAgee / vuejs-wordpress-theme-starter

A WordPress theme with the guts ripped out and replaced with Vue.
https://vuewp.com/
1.6k stars 281 forks source link

assets not rebuilding with npm run watch #43

Closed joshbedo closed 5 years ago

joshbedo commented 5 years ago

Just noticing this but it seems like when files are changed witin the VueJS source code the project isn't recompiling. I keep saving and don't see the terminal re-run webpack processes or anything. Also having issues seeing changes on the theme once its activated as a theme on a wordpress install. Is their something i'm missing?

joshbedo commented 5 years ago

Looks like it might be related to issues with laravel-mix's copyDirectory method i'm seeing a lot off issues around npm run watch currently open https://github.com/JeffreyWay/laravel-mix/issues

EvanAgee commented 5 years ago

Nice @joshbedo it might be time to remove laravel-mix and just go straight webpack. I'll have to take a look when I have some free time.

joshbedo commented 5 years ago

@EvanAgee so oddly enough i ran npm cache clear --force, deleted .lock files, and reinstalled npm modules now its compiling fine. There are still some hiccups where it recompiles but the changes aren't there but its actually recompiling and showing changes now so thats a step forward :D. I love the simplicity of the laravel-mix API but you might be right.

Currently trying to hook up the menus and connect it to the REST API with your setup.

joshbedo commented 5 years ago

Thought i fixed this but the issue is back again :\

joshbedo commented 5 years ago

Which version of node are you using for this? @EvanAgee

EvanAgee commented 5 years ago

@joshbedo I've just released an updated version of the project that will address many of these issues. Please note that the paths of the JS and CSS have changed so you may need to update your project. https://github.com/EvanAgee/vuejs-wordpress-theme-starter/issues/48