It concats, minifies, and applies source maps.
That's a pretty weird outcome, if only the font is slightly different. Can you pinpoint the exact selector, where the CSS comes out different?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I have a situation where everything works great if I include individual style sheets in my layout file like so:
<link href="/css/spark.css" rel="stylesheet">
<link href="/css/semantic.css" rel="stylesheet">
<link href="/css/ucpics.css" rel="stylesheet">
But if I try to concatenate those three files together using Elixir's mix.styles, everything still works but the font for all headings and buttons looks slightly different and it's driving me nuts. This is what I'm using to concatenate:
mix.styles(['./public/css/spark.css', './public/css/semantic.css', './public/css/ucpics.css'], './public/css/app.css')
Since the actual contents of each individual .css file hasn't changed, it leads me to believe that something else is going on during the concatenation process that is either changing the css or inserting it in a different sequence order. Can anyone explain what could be happening here?
Thanks!
I have no idea why, but I was able to fix this by adding the following line to my template file before my css imports:
<link href='https://fonts.googleapis.com/css?family=Lato:700,400' rel='stylesheet' type='text/css'>
That fixed it, but I have no idea why since it was only an issue if I concatenated the css files. Does this mean there's a bug somewhere in Elixir or something that Elixir is using?
Please or to participate in this conversation.