vue-loader Questions

13

Solved

Currently I have to watch a few properties. And if each of them changes, I have to invoke the same function: export default{ // ...... rest of code watch: { propa: function(after,before) { do...
Stat asked 11/3, 2017 at 15:33

5

Solved

How can I style v-html content with scoped css using vue-loader? Simple example: component.vue <template> <div class="icon" v-html="icon"></icon> </template> <script&g...
Kakapo asked 30/6, 2017 at 10:54

2

Solved

What is the difference between <style module> and <style scoped> in Vue? The official documentation (link1, link2) states only that scoped uses PostCSS transformation and module uses C...
Vancouver asked 22/5, 2018 at 9:23

4

Could you please help importing a TypeScript2 Vuejs2 component from another TypeScript2 Vuejs2 component? Target module (MyTable.vue) <script lang="ts"> export default {} </script> ...
Herrod asked 22/3, 2017 at 7:37

3

Solved

I work with Vue3 in TS (last vue-cli). I want to get all nodes (vnodes) elements when vue-loader compile .vue file. I need to read nodes attributes and remove all "data-test". I have try ...
Katonah asked 10/6, 2021 at 13:43

2

I am trying to use vue-loader with my SPA VUE APP, And I'm getting the following error. ERROR in ./app2.vue Module build failed (from ./node_modules/vue-loader/dist/index.js): TypeError: Cannot...
Leoraleos asked 18/10, 2022 at 18:39

9

Solved

i am new to vue.js, just coming from react.js. the problem i am facing with the vue loader didn't happened at first. but from the second time the app crashes from starting the server. npm run serv...
Yockey asked 20/8, 2020 at 11:58

0

Is there a way to pre compile Vue3 templates for client side rendering using Vite to avoid 'unsafe-eval' errors? Seems like Vue-Loader allowed template pre compilation but I am not finding the same...
Botts asked 7/12, 2021 at 10:48

8

Solved

I'm using Vue router with two pages: let routes = [ { path: '/', component: require('./components/HomeView.vue') }, { path: '/intro', component: require('./components/IntroView.vue') } ] ...
Integrator asked 14/6, 2017 at 10:17

5

I'm trying to use Bootstrap in a Vue component, and I want all CSS to be scoped. I tried something like this: <style scoped> @import "~bootstrap/dist/css/bootstrap.css"; @import "~bootstrap-...
Gaultiero asked 4/4, 2018 at 14:40

4

output output: { path: config.build.assetsRoot, publicPath: process.env.NODE_ENV === 'production' ? config.build.assetsPublicPath : config.dev.assetsPublicPath, filename: '[name].js' } ba...
Aeriela asked 11/3, 2017 at 16:22

6

Solved

I am passing a props to a component: <template> {{messageId}} // other html code </template> <script> export default { props: ['messageId'], data: function(){ var theDa...
Scurrilous asked 10/3, 2017 at 15:49

1

Vue 3 deprecated using v-deep as a combinator: https://github.com/vuejs/rfcs/blob/master/active-rfcs/0023-scoped-styles-changes.md We have existing code using SCSS and v-deep like this: .class ::v-...
Boyles asked 13/2, 2021 at 8:10

4

Solved

I am trying to integrate vuejs 3 to an existing project which uses webpack. I read about vue-loader, so I am trying to use it. In the official documentation I have this: Every time a new version of...
Conductance asked 17/11, 2020 at 2:48

4

I have a vue.js (version 2.4.4) application built with webpack (version 3.6.0) and vue-loader (version 13.0.5). In the .vue files, I need to modify the url contained in the src attribute of the &l...
Aspergillus asked 19/12, 2019 at 16:54

4

Solved

I have App.vue which has a template: <template> <div id="app"> <login v-if="isTokenAvailable()"></login> </div> </template> I've declar...
Eudemonism asked 25/4, 2017 at 10:43

1

I have a small VUE project with 25 entries which is created by vue-cli. During the development, when HMR is on, the rebuild time is about 10s now. I use --profile --progress to start webpack-dev-...
Shabuoth asked 3/1, 2018 at 11:25

2

Solved

I use the latest versions of vue-cli3 webpack4 and vue-loader v15. I want to configure vue-loader, but there is an error: Error: [VueLoaderPlugin Error] No matching use for vue-loader is found. ...
Stumpf asked 3/12, 2018 at 7:49

4

Solved

i have created Vuejs app using vue-loader,now i need to use an installed npm package as follow : var x = require('package-name') Vue.use(x) but i have this error : Uncaught TypeErr...
Byrnes asked 29/1, 2017 at 13:6

2

Solved

The problem: component styles keeped when component was unmounted. In this example, I unmount(and destroy) Unused component, but styles from this component still affect on page. Background: I'm t...
Barny asked 9/7, 2019 at 10:40

5

I want to pass custom parameters from command line. Something like this: webpack-dev-server --inline --hot --customparam1=value Exactly what I am trying to achieve is that I am working on a vue-...
Supply asked 16/3, 2017 at 17:2

1

Solved

I have a project created through Vue CLI and now I want to use Pug with my Single File Components i.e. the .vue files. To do that I started following this vue-loader documentation and installed pug...
Nunciata asked 28/6, 2019 at 19:19

2

I am trying to use the srcset and sizes HTML attributes for responsive images to serve a certain image to a certain screen size for performance optimization and responsive design. But Vue-loader do...
Estelleesten asked 10/10, 2018 at 22:45

2

i got a fresh laravel installation, everything compile well but when I install vuex or vue router through npm, compiling wont work anymore, i got this error: Error: [vue-loader] vue-template-com...
Libbylibeccio asked 12/12, 2018 at 5:46

1

Trying to add vue (and SFCs) to my webpack app. The <template> and <script> blocks work fine, but for some reason the styles in the <style> block are not being extracted for produ...
Patroclus asked 12/12, 2018 at 5:58

© 2022 - 2024 — McMap. All rights reserved.