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

236
Vistas
A simple way to remove newlines (line breaks) between CSS selectors

With gulp-beautify I'm optimizing files containing CSS for email, which means they can't have newlines between selectors, since there is a limit on the total number of lines allowed in some email clients. I've found Beautify has an option to add newlines between selectors, but it doesn't have a feature to remove them. If selector_separator_newline is false, it ignores newlines if present.

I'm building tasks for two outputs, minified, and beautified. Obviously, the minified version doesn't need this.

I could minify before I beautify, but that removes comments, and I need to preserve comments.

I could remove all new lines and then run Beautify, and I'm looking into doing that, but I feel like I'm missing something.

Is there a package, out-of-the-box, or otherwise simple way to remove all newlines / line breaks between selectors?

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