解决autoprefixer插件兼容性问题

平时用autoprefixer插件的时候会遇到-webkit-box-orient 不生效的的问题,网上搜了一些方法,总结一下

	/* autoprefixer: off */
   -webkit-box-orient: vertical;
   /* autoprefixer: on */

我试了一下,我这边因为用了postcss-px-to-viewport插件,和autoprefixer也不怎么兼容 版本只能8.0.0,所以这个方法不行,会报错

	/*! autoprefixer: ignore next */
   -webkit-box-orient: vertical;

这个方法可以,查了下资料是在编译过程中不编译下一行,以后在用autoprefixer插件遇到类似的问题都可以用这个方法解决


版权声明:本文为c347087870原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。