impbob36's avatar

Laravel Mix & Autoprefixer

Is there a way to change the autoprefixer options in Laravel Mix? There use to be in Elixir.

0 likes
1 reply
lipskis's avatar
lipskis
Best Answer
Level 9

In the webpack.mix.js file you can do this

mix.options({
    postCss: [
        require('autoprefixer')({
            browsers: ['last 2 versions'],
            cascade: false
        })
    ]
});
2 likes

Please or to participate in this conversation.