4

I want to use vue.js as frontend for sails.js i tried to configure using the method given at http://filipbartus.name/integrate-vue-loader-with-sails-js/ but it was not working for vue latest version but i don't see any reason why? can someone explain why is it not working please?

latest version not working: https://github.com/jeevansai502/kube

previous version from example working: https://github.com/filipinyo/vue_sails_integration

Pierce O'Neill
  • 385
  • 9
  • 22
identicon
  • 61
  • 1
  • 6
  • 1
    Vue.js is extremely progressive. The most basic integration would consist of a simple script in your Sails layout to reference a CDN. But if you want to use vue-cli with the webpack template and vue-router, that's another story... This would conflict with the Sails workflow (which uses Grunt) and its internal routing. Anyway, you should provide more information in your question if you want to get a relevant answer. – Badacadabra Aug 09 '17 at 18:10

1 Answers1

0

I think tha the best options is replacing Grunt with Webpack and vue loader. Look at this repo https://github.com/Tarrask/sails-hook-webpack-vue. It's pretty easy with this hook.

Bauer01
  • 281
  • 1
  • 3
  • 13