evrone / postcss-px-to-viewport

A plugin for PostCSS that generates viewport units (vw, vh, vmin, vmax) from pixel units. The best choice to create a scalable interface on different displays by one design size.
https://evrone.com/postcss-px-viewport
MIT License
2.99k stars 401 forks source link

似乎npm最新版本和github上的版本不一致? #82

Open chaserstrong opened 3 years ago

chaserstrong commented 3 years ago

遇到的问题是include属性部署了无效,排查后发现,把npm的引用地址改为github上的可以生效,但是如果用远程npm仓库地址,就会失效。

Is the files on github the same of these on npm?

@KODerFunk

yplovecl commented 3 years ago

确实如此,只能直接使用 github 版本才可以配置成功

dengpan0513 commented 3 years ago

确实如此,只能直接使用 github 版本才可以配置成功

请教一下,是这样 npm i https://github.com/evrone/postcss-px-to-viewport --save-dev 安装 github 的版本么?

FBin001 commented 3 years ago

咋还不发布npm啊,黄花菜都凉了

jaluik commented 3 years ago

使用这个吧

支持include参数了

yarn add postcss-px-to-viewport-with-include
Mess663 commented 2 years ago

^((?!/src).)*$

也可以用exclude反向选择

Benjamin-Zh commented 2 years ago

可以在 package.json 里直接引用 GitHub 仓库的代码:

"devDependencies": {
    ...
    "postcss-px-to-viewport": "github:evrone/postcss-px-to-viewport",
    ...
  },

另外真的也催更一下 npm 😂

tanglu123 commented 2 years ago

更一下npm吧 公司办公网访问不了github 艰难