postcss-px-to-viewport icon indicating copy to clipboard operation
postcss-px-to-viewport copied to clipboard

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

Open chaserstrong opened this issue 5 years ago • 7 comments

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

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

@KODerFunk

chaserstrong avatar Jan 17 '21 09:01 chaserstrong

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

yplovecl avatar Jan 20 '21 08:01 yplovecl

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

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

dengpan0513 avatar Jan 20 '21 12:01 dengpan0513

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

FBin001 avatar Apr 30 '21 02:04 FBin001

使用这个吧

支持include参数了

yarn add postcss-px-to-viewport-with-include

jaluik avatar May 12 '21 03:05 jaluik

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

也可以用exclude反向选择

Mess663 avatar Jul 12 '21 02:07 Mess663

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

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

另外真的也催更一下 npm 😂

Benjamin-Zh avatar Jul 20 '21 10:07 Benjamin-Zh

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

tanglu123 avatar Aug 25 '21 02:08 tanglu123