Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

218
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!