weixin_39702799
weixin_39702799
2020-12-25 19:04

Facilitate user generated prefix data

It would be great if the package came with a generator in bin to create the prefix data specifically for the browsers that the user wants to target. This way we can leave out things like old Safari versions for example that require a lot of prefixes.

该提问来源于开源项目:robinweser/inline-style-prefixer

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

4条回答

  • weixin_39756336 weixin_39756336 4月前

    I guess I can push something next week, but I'd prefer to use hardcoded versions as its much simpler to use with the current API I guess. So you basically pass an object similar to the config.js and get a set of prefix properties :P

    点赞 评论 复制链接分享
  • weixin_39966909 weixin_39966909 4月前

    Ideally the static version would share the autoprefixer behavior, in that it would accept a browserslist config or look for a browserslist file.

    点赞 评论 复制链接分享
  • weixin_39756336 weixin_39756336 4月前

    This will be built-in in version 3.0.0. Documentation is on its way :P

    点赞 评论 复制链接分享
  • weixin_39849287 weixin_39849287 4月前

    Notice that there is already kind of a standard way to declare the targeted browser: browserslist.

    点赞 评论 复制链接分享

相关推荐