Jump to content

Writing a module in vue


Recommended Posts

Hello friends! I want to use vue in prestashop module but I don't know how to start a project with compiling vue to my admin template file. Look at my project tree here:

tx182fV.jpg

Vue app is in root directory and I want it use in my /views/templates/admin/configure.tpl file. I tried to include in confgure.tps main.js from vue but shows me error "Uncaught SyntaxError: Unexpected identifier". Is it possible to just run serving vue and get hot reload in my presta module? 

Link to comment
Share on other sites

Thanks for reply,

Include it as a normal js file works but i want to create full vue app ( with templates, components etc ) in my project and make it hot reload ( refresh app whenever changes are made )

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...