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

225
Vistas
Minify CSS removes properties with var() in Laravel

I'm using the https://github.com/DevFactoryCH/minify package for minify the css and js files. but I'm getting issue with it when I compile my css files then minify remove the var() properties. this is my code with css variables

:root {
  --primary-color: #1d85b9;
  }
.info.icon-info {
  background: #fff;
  color: var(--primary-color)!important;
}

this is home.blade.php file code

{!! inline_css(Minify::stylesheet(array(
  '/css/bootstrap.css',
  '/css/style.css',
  '/css/label.css',
))) !!}

its compile without var() properties Output:

.info.icon-info {
      background: #fff;
}

Please suggest the alternate minify package for that

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

0

Stop using old, slow, and outdated technologies. This includes both the CSS minification library you're using, and PHP itself.

This one for NPM was updated 3 months ago: https://www.npmjs.com/package/css-minify

This one for PHP was updated 10 months ago: https://github.com/matthiasmullie/minify

Or, perhaps try this API out: https://www.toptal.com/developers/cssminifier/api

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