-1
I am creating my portfolio in vuejs, created a link to make the file available for download (pdf) but is downloading html.
home -views --home
Folder organization (pdf file) -Assets --pdf
html
<a :href="dow" download="Curriculum">
<span class="dow"></span>
</a>
JS
data ( ) {
return {
dow: '@/assets/CurriculumR.pdf',
}
}
This link can help you: https://stackoverflow.com/questions/48015954/how-to-download-a-locally-stored-file-in-vuejs
– Emerson Vieira
Emerson, I couldn’t find this file
webpack.config.js
.– Bruno Galvao