bshiluk / vue-wordpress

Use Vue.js and the WP REST API to build WordPress themes as SPAs with dynamic routing, HMR for development, SEO enabled, and SSR capable. Demo:
http://vue-wordpress-demo.bshiluk.com
491 stars 112 forks source link

localhost:8080 list files #29

Open rabichawila opened 4 years ago

rabichawila commented 4 years ago

I am running WordPress in Nginx. installed everything like it's said in the doc.

Enabled dev mode

// Enable For Production - Disable for Development
// wp_enqueue_script('vue_wordpress.js', get_template_directory_uri() . '/dist/vue-wordpress.js', array(), null, true);

// Enable For Development - Remove for Production
wp_enqueue_script( 'vue_wordpress.js', 'http://localhost:8080/vue-wordpress.js', array(), false, true );

then

npm run dev

http://localhost:8080/

Now when i visit http://localhost:8080/ i get directory list, but when i visit mysite.local i get plain wordpress without any vueJs component

goodpenguins commented 4 years ago

Same