Support the ongoing development of Laravel.io →
Packages Architecture

I'm using elixir with laravel 5. How can I auto-prefix my css like sass and less scripts ?

This piece of code do not auto-prefix my custom CSS: mix.styles([/* my styles */]);

Last updated 3 years ago.
0

By default, elixir use autoprefixer with default arguments. And syntax use it:

mix.styles(['style-name.css'], 'path/folder-contain/', 'public/css/all.css'])
Last updated 3 years ago.
0

I believe that at the time of my first post (at laracast) elixir do not allowed autoprefix css , but I'll try again with "composer update", thanks for the reply!

My first post: https://laracasts.com/discuss/channels/requests/does-anyone-know-how-can-i-autoprefix-my-styles-with-elixir

Last updated 3 years ago.
0

I look @ the code and I don't know to say exactly the truth. But I think the autoprefixer is not implemented for custom css combines.

Last updated 3 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.