
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
ld-img-lazy
Advanced tools
1.使用该插件默认已经安装了node以及npm(一般安装node就会自动安装好了)
npm install github:gulpjs/gulp#4.0 -g //一定要用gulp4.0,要不后续会报错
npm install npm-scaff -g //mac如果报错尝试在开始添加sudo
pm -V 或者 pm --version //出现版本号说明安装成功
mkdir <test> //创建一个名字为test的文件夹
cd <test> //进入test这个文件夹
pm init // 创建脚手架的一些文件,按照提示输入项目名称(假设为jquery),以及是否自动npm install,以及选用的框架
cd <jquery> //进入jquery这个文件夹
pm add <pagename> //pagename为你要创建的页面名称,输入之后会在src下面生成页面需要的文件,这里已经做了判断,之前选择什么框架,这里就会生成什么框架的页面模版
在package.json这个目录执行以下命令
命令 | 含义 |
---|---|
gulp | 调试所有页面 |
gulp demo | 调试demo这个页面 |
gulp build | 打包所有页面 |
gulp build-demo | 打包demo这个页面 |
FAQs
img lazy load
The npm package ld-img-lazy receives a total of 1 weekly downloads. As such, ld-img-lazy popularity was classified as not popular.
We found that ld-img-lazy demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.