Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

144
Views
El constructor Vue.js produce rutas incorrectas en index.html

El problema es que después de compilar la aplicación vue en la carpeta de destino, aparece index.html con rutas incorrectas a los activos estáticos. Los enlaces parecen

 <link href="/static/js/chunk-29e00bf1.49e28fbb.js" rel="prefetch">

lo cual es incorrecto, pero debe ser

 <link href="static/js/chunk-29e00bf1.49e28fbb.js" rel="prefetch">

Y el navegador busca en ///D:/static/js/ en lugar de D://.../build/dist/static/js .

Ahí está mi vue.config.js

 module.exports = { outputDir: './build/dist/', assetsDir: './static', //...
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Use la propiedad publicPath y establezca la ruta en ./ para usar rutas relativas en la compilación.

 module.exports = { ... publicPath: "./" ... }

Lea más en la documentación oficial: publicPath

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!