Top "Vue-loader" questions

vue-loader is a vue.

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 …

javascript module webpack vuejs2 vue-loader
Accessing props in vue component data function

I am passing a props to a component: <template> {{messageId}} // other html code </template> <script&…

vue.js vue-loader
vue js watch multiple properties with single handler

Currently I have to watch a few properties. And if each of them changes, I have to invoke the same …

vue.js vue-loader
Webpack compile error: TypeError: __WEBPACK_IMPORTED_MODULE_1__ … is not a function

So, this my Api Service Component, I'm using Axios: import api from './Api.vue'; export default { name: 'app-feed-service', methods: { …

javascript file-upload webpack vue.js vue-loader
Unexpected token: operator (>) from UglifyJs

I have 2 Vue-Cli webpack projects (ClientApp and Lib). Lib is my components library (shared with other projects) Problem When I …

webpack vuejs2 vue-loader babel-loader
How to write test that mocks the $route object in vue components

I have a component that contains statement like this.$route.fullPath, how should I mock value of fullPathof $route object …

unit-testing sinon vue-component vuejs2 vue-loader
Changing body styles in vue router

I'm using Vue router with two pages: let routes = [ { path: '/', component: require('./components/HomeView.vue') }, { path: '/…

javascript vue.js vue-router vue-loader
Components and Sub components

I'm new to Vue.js and I'm having a bit of trouble using components with sub-components. I have the following .…

vue.js vue-component vue-loader
Error: Cannot find module 'vue-loader-v16/package.json'

i am new to vue.js, just coming from react.js. the problem i am facing with the vue loader …

javascript vue.js vuex vue-router vue-loader
vue.js: always load a settings.scss file in every vue style section

I find myself repeating this same pattern in every .vue file, in order to use variables, etc.: <style lang="…

sass webpack vue.js vue-loader