5

I would like to use vue.js for parts of a template in my hexo theme. How can I compile my .vue-files to be used in my template (in dev and production)? I’m not talking about server side rendering, vue.js should run on the client side (but would also be an option).

Pwdr
  • 3,712
  • 4
  • 28
  • 38
  • I am having the same issue. I called in vue via cdn but the Hexo variables are not avail to vue – Connor Leech Aug 09 '17 at 21:53
  • I think we'd have to use webpack or browserify to compile the .vue files, which is not included by default in hexo. This site uses hexo and vue so could be an example of how to go about achieving this: https://github.com/briangonzalez/briangonzalez.org/blob/master/themes/briangonzalez.org/source/js/app.js – Connor Leech Aug 16 '17 at 16:20

1 Answers1

-2

vue.js website built with hexo. You can check the source code: https://github.com/vuejs/vuejs.org

Roslan Elyashiv
  • 175
  • 1
  • 2
  • 10