Laravel Mix & Autoprefixer

Published 1 year ago by impbob

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

Best Answer (As Selected By impbob)
lipskis

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

mix.options({
    postCss: [
        require('autoprefixer')({
            browsers: ['last 2 versions'],
            cascade: false
        })
    ]
});
lipskis
lipskis
1 year ago (37,810 XP)

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

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

Please sign in or create an account to participate in this conversation.