Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

167
Vistas
Using absolute path vs relative path in webpack config

I am trying to learn Webpack and when I've watched some tutorials on youtube I have seen them use the path module to resolve an absolute path. Is this necessary? I tried using both of them and it seems that they are the same. The code from the tutorial looks something like this:

const path = require("path");
module.exports = {
  mode: "development",
  entry: { main: path.resolve(__dirname, "src/app.js") },
  output: {
    filename: "[name].[contenthash].js",
    clean: true,
  },
};

The code I tried (Which brought the same results):

module.exports = {
  mode: "development",
  entry: { main: "./src/app.js" },
  output: {
    filename: "[name].[contenthash].js",
    clean: true,
  },
};
about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda