<v-card-media> images are not proccess in Vue Loader with "npm run build"
See original GitHub issueHi! i’ve deploy my aplicacion with npm run build
of Vue Loader, but I see that the image in the v-card-media component is not processed unlike other tags “img”,etc
Code
Scalfolding
npm run build
Sorry for my english! 😃
Issue Analytics
- State:
- Created 6 years ago
- Reactions:5
- Comments:18 (5 by maintainers)
Top Results From Across the Web
vuetify webpack simple - npm run build - images not being ...
I'm thinking I have to configure the file-loader to fit my project? Of note, I have two images that are being copied to...
Read more >vue-loader
Start using vue-loader in your project by running `npm i vue-loader`. ... TypeScript icon, indicating that this package has built-in type ...
Read more >Production Speckle Server deployment - #26 by dimitrie - Help
Just run then npm install && npm run build in the frontend package and let ... node_modules/vuetify/src/components/VCard/VCard.sass despite it was not able ...
Read more >npm run build - images not being copied to /dist/-vuetify.js
[Solved]-vuetify webpack simple - npm run build - images not being copied to /dist/-vuetify.js. Search. score:0. I replaced the url-loader with file-loader.
Read more >How to create a Vue.js app using Single-File Components ...
No build or development process is necessary. ... npm install vue vue-loader vue-template-compiler webpack webpack-cli webpack-dev-server ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I believe @jyacot wants to do relative URLs static assets imports. Usually, relative URLs are automatically enabled. For example, in the official vuejs template we can see
According to the vue-loader’s documentation, the markup above is actually translated to
which is something VCardMedia.js doesn’t have. It simply uses whatever url you passed into
src
prop ofv-card-media
componentIf you want a quick fix however, try
This solved my problem.
@johnleider I believe this is a common gotchas since vue-template encourages you to use relative imports (see Handing Static Assets). Would you consider adding it to the official Frequently asked questions | Vuetify?
@johnleider Check out this minimal reproduction: v-card-media_relative_import.
Review especially these lines
And the result looks like this:
Notice directly using relative import on
<v-card-media>
doesn’t work the same way<img>
does. In<img>
, you can write:while for
<v-card-media>
you need to write