1.0.2 • Published 5 years ago

@qinyuanqiu/html2img v1.0.2

Weekly downloads
1
License
ISC
Repository
-
Last release
5 years ago

html2img(网站地址转图片输出)

1.安装

npm install @qinyuanqiu/html2img

2.在package.json中添加命令行

// package.json
"scripts": {
	"html2img": "compile-url"
},
  1. 添加配置文件html2img.config.js
module.exports = [
	{name: 'baidu-m',url: 'https://www.baidu.com',isMobile: true},
	{name: 'baidu-pc',url: 'https://www.baidu.com'}
]

说明

  • name(必填): 生成图片的名字,如果有重复,前面的会被后面覆盖
  • url(必填): 网站网址
  • isMobile(默认false): 是否使用手机浏览器渲染
  1. 执行
npm run html2img
1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago