Laravel-mix: Vue components scss styles autoprefixing

Created on 20 Sep 2017  路  11Comments  路  Source: JeffreyWay/laravel-mix

Hi, as long as my scss styles in Vue components work pretty well, they are not prefixed in the end. I've searched through web but couldn't find any solution. Is there any way to set this in my .mix file ? As far as I know, in vue-loader options I need to add something like:

options: {
postcss: [require('autoprefixer')()]
}

however I got no idea how to do it in laravel-mix.

stale

Most helpful comment

Related #1189. You might want to follow the changes in that PR before it's being merged.

All 11 comments

Related #1189. You might want to follow the changes in that PR before it's being merged.

@ruchern I've got to admit i didn't look into pull requests. Works as I expected, thanks :)

Is there any update on when this will get released? I too need this and I would rather just update my dependencies than to monkey-patch my current config again.

@stephan-v It does seem like this fix is already in the latest version.

It was merged 17 days ago and the last release was 20 days ago? Am I misreading something? I will check though.

@stephan-v Well, v1.4.5 was not tagged by @JeffreyWay in the releases page but on npm.

Ah I see on NPM it has indeed been updated, very nice. Thanks!

@stephan-v Commit was tagged v.1.4.5 as 67e52924558e88773484af1d006d563ed3246017, which is 20 days ago.

Edit: Whoops. I am wrong. Sorry mate.

Yes I pulled in the v.1.4.5 update but the fix has not yet been included. #1189 fixes my issue though, guess I will have to wait.

And it has just been released, nice.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings