Answer the question
In order to leave comments, you need to log in
Is it possible to do without NodeJS and npm?
I came across the fact that this module https://github.com/vuejs/vue-resource
required `require` to work, which, as it turned out, comes with Webpack/Browserify and needs to be installed via npm.
Given that I know very little JS, I would like some simpler option. Is it possible to do without all this?
Any option that would work at least somehow will suit me. Preferably as easy as possible.
And another question. If I have this code:
var App = new Vue ({
el: '#app',
// template: '<usermenu></usermenu>',
data:
{
currentView: 'foo'
}
})
var Vue = require('vue');
Vue.use(require('vue-resource'));
Answer the question
In order to leave comments, you need to log in
require is not a package, it's the basic construction of a node... but it's not entirely clear from the description what is required
Is it possible to do without all this?
Browserify is a simple thing, source.js would have done everything
themselves
var Vue = require('vue');
Vue.use(require('vue-resource'));
var App = new Vue ({
el: '#app',
// template: '<usermenu></usermenu>',
data: { currentView: 'foo' }
})
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question