autoprefixer: ignore next not work bug All In One


autoprefixer: ignore next not work bug All In One

webpack 打包后,样式部分丢失

可能原因

  1. Node.js 升级 v8.9 => v14.16
  2. node-sass 换成 dart-sass
  3. 更新后 CI docker 有缓存
  4. ...

bug ?

/* autoprefixer: ignore next */ ? not work any more

.multText-inline {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    /* autoprefixer: ignore next */
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

solution ?

已验证 OK


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

或 ???


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

refs

https://stackoverflow.com/questions/56105499/attribute-webkit-box-orient-in-css-not-working-when-build-in-vuejs

https://github.com/postcss/autoprefixer/issues/1220

https://juejin.cn/post/6844903848599896072


Flag Counter

?xgqfrms 2012-2020

www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!

原创文章,版权所有??xgqfrms, 禁止转载 ???,侵权必究??!