0

I install vue-admin by npm and now is in node_modules folder.

how can I import it to laravel in app.js file from node_modules.

can I use something like

import  { app }  from 'vue-admin/client/app'
Alireza
  • 67
  • 7
  • Already answered in [here](http://stackoverflow.com/a/38371423/5139222) . Is this you looking for? – KuKeC Dec 20 '16 at 09:39
  • No this is for using class in laravel. what i am looking is to import js framework from node_modules in Vue-js app.js file – Alireza Dec 20 '16 at 09:42

1 Answers1

1

you need to put in your app.js file this like this in your resource folder.

var VueAdmin= require('vue-admin');

Vue.use(VueAdmin);

"vue-admin" depends what is the name of the folder or the module you want to include

and then run your gulp or gulp webpack.

Community
  • 1
  • 1
Winston Fale
  • 1,316
  • 2
  • 11
  • 18