C-Lodder / grunt-postcss

Apply several post-processors to your CSS using PostCSS.
MIT License
39 stars 7 forks source link

strange swapping for autoprefixer #11

Closed cjm771 closed 5 years ago

cjm771 commented 5 years ago

Always getting the prefixes for certain files, swapped periodically in grunt post-css, triggering a unstaged file change. My settings are as follows:

    postcss: {
      options: {
        map: false,
        processors: [
          require('autoprefixer-core')({
            browsers: ['last 2 versions']
          })
        ]
      },

Result for certain files below (prefixes are swapped order-wise, even though this file wasn't changed at all) image

axten commented 5 years ago

not sure if this is related to grunt-postcss... can you please verify this does not happen with plain postcss?

C-Lodder commented 5 years ago

@cjm771 autoprefixer-core is old and deprecated. Please use the autoprefixer package

cjm771 commented 5 years ago

Ok I’ll try it out and get back to you thanks!

cjm771 commented 5 years ago

I think that might have fixed it. I'll close this issue for now thanks.