(See end for why this is not a dupe of How do I include a JavaScript file in another JavaScript file?)
Javascipt + Vue + webpack + vue-loader noob... stumbling on the si
Say I want to import data into a component from src/mylib.js:
src/mylib.js
var test = { foo () { console.log('foo') }, bar () { console.log('bar') }, baz () { console.log('baz') } } export default test
In my .Vue file I simply imported test from src/mylib.js:
test