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

218
Vistas
webpack 5: webpack-dev-server is not hot-reloading

Currently I am learning to use Webpack. In the course of this I am building up a boilerplate. To make the development a bit faster and more dynamic, I would like to use the webpack-dev-server. This can also be started correctly. The problem is that changes are not visible. Even if I refresh the page manually, the changes are not there.

My folder strucure:

├── dist
│   └── bundle.js
├── src
│   ├── scss
│   │   └── app.scss
    └── index.js
├── webpack.config.js
├── package.json
├── package.lock.json
└── index.html

My webpack-config:

const path = require("path");

module.exports = {
    entry: './src/index.js',
    mode: "development",
    cache: true,
    output: {
        filename: 'bundle.js',
        path: path.resolve(__dirname, 'dist'),
        publicPath: path.resolve(__dirname, '')
    },
    module: {
        rules: [
          {
            test: /\.s[ac]ss$/i,
            use: [
                "style-loader",
                "css-loader",
                "sass-loader",
            ],
          }
          }
        ],
    },
    devServer: {
        static: "./",
        compress: true,
        port: 9000,
        hot: true
    },
}

For example, I make a change in app.scss. This only becomes visible when I bundle webpack. I know that the dev-server returns the data from the memory and does not write the changes to the files.

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