[英]How to include a non NPM package in package.json to be installed?
I have installed what cloned what looks like a non NPM package https://github.com/anthonygore/html-critical-webpack-plugin into my node_modules directory and then manually ran npm install
from within to install dependencies. 我已经将克隆的东西看起来像一个非NPM软件包https://github.com/anthonygore/html-critical-webpack-plugin安装到我的node_modules目录中,然后从内部手动运行
npm install
来安装依赖项。 This all works fine locally, I'm just not sure how I can make this module available by possibly including in package.json
for other developers to pull and install? 所有这些在本地都可以正常运行,我只是不确定如何通过可能在
package.json
包含该模块以供其他开发人员安装和使用?
This works for me: 这对我有用:
package.json 的package.json
{
...
"dependencies": {
"html-critical-webpack-plugin": "https://github.com/anthonygore/html-critical-webpack-plugin"
}
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.