minhtranite / react-photoswipe

PhotoSwipe, PhotoSwipeGallery component for ReactJS base on PhotoSwipe.
322 stars 106 forks source link

Warning about autoprefixer browsers option #49

Open bobsilverberg opened 3 years ago

bobsilverberg commented 3 years ago

When running a project that includes react-photoswipe, the following warning is issued in the console:

Replace Autoprefixer browsers option to Browserslist config.
Use browserslist key in package.json or .browserslistrc file.

Using browsers option can cause errors. Browserslist config
can be used for Babel, Autoprefixer, postcss-normalize and other tools.

If you really need to use option, rename it to overrideBrowserslist.

Learn more at:
https://github.com/browserslist/browserslist#readme
https://twitter.com/browserslist

I believe this is because react-photoswipe is specifying the browsers option for autoprefixer here: https://github.com/minhtranite/react-photoswipe/blob/master/postcss.config.js#L9. This should be removed and possibly replaced with a browserslist key in package.json or a .browserslistrc file.

nithiz commented 3 years ago

I'm running into the same issue. @minhtranite are you still maintaining this repository?