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

116
Vistas
Is there any way to generate only CSS source maps with webpack?

I'm experimenting with webpack builds and interesting question occurred. I want to generate CSS only source maps for prod and when I use devtool: "source-map", I end up with both JS and CSS maps. I did a quick search about this "issue", but nothing came up. Is there any easy way to control which maps I generate?

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

https://webpack.js.org/configuration/devtool/#devtool

Instead of using the devtool option you can also use SourceMapDevToolPlugin/EvalSourceMapDevToolPlugin directly as it has more options. Never use both the devtool option and plugin together.

So drop that source-map setting on the devtool option, and install / plug in: https://webpack.js.org/plugins/source-map-dev-tool-plugin/

From there, SourceMapDevToolPlugin's exclude or include options is where you being to narrow down CSS only maps.

about 4 years ago · Juan Pablo Isaza Denunciar
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