查找静态资源路径,支持css、js、图片。 建议先替换css中图片。
$ npm install -g check-files
$ check-files -f index.html
$ check-files -f index.html -r /root
Option | Alias | Default | Description |
---|---|---|---|
--file | -f | index.html | 上传的文件名 |
--path | -p | 当前路径 | 静态文件的相对根路径 |
--type | -t | 所有类型 | 静态文件的类型,可选值:js css img |