DEV Community

Discussion on: Vue Application as a Wordpress Plugin

Collapse
 
dgmann profile image
DGMANN

Hey Franck,

thank you very much!

I didn't get this one "I add to have more page and I did single page I mean template/script/style in each one" completly. Can you explain that a bit more? Maybe then I can say something about it. Are the read & write permissions of the folders in the server file system sufficient?

About the images:
The link for the images called up in the network tab (prod) ended in nothing? What would have to be changed so that the link to the image is correct?
Maybe the local link is not completely the same as the productive link?

Collapse
 
franckysmith profile image
franckysmith

Hi Paloma, and thanks for your response?
Finaly I fixed all:
for the style css I add in wp-vue.php: wp_register_style( 'stylesheet', plugins_url( 'dist/css/app.css' , FILE ) ); and
wp_enqueue_style( 'stylesheet' );
and for the image I put the img folder next to wp-content , wp-admin ...
of course it should be better if we could let it in the dist folder ... but for now it works fine
thanks again

Thread Thread
 
dgmann profile image
DGMANN

Happy to hear that! :)
And you are right. Maybe this solution helps you: stackoverflow.com/questions/522163...