how to import functions from different js file in a Vue+webpack+vue-loader project
问题 (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 simplest of things! I have App.vue which has a template: <template> <div id="app"> <login v-if="isTokenAvailable()"></login> </div> </template> I declare the isTokenAvailable method in the normal way for Vue inside methods . It uses a function that I wrote in a separate js file: <script> import * as mylib from './mylib'; export