dps
dps copied to clipboard
:tangerine: a way to make skeleton screen, 一种自动生成网页骨架屏的方式
全局安装 draw-page-structure 后,以 baidu.com 为例,运行 dps start,卡在“启动浏览器...”处就不动了
dps init后一直报Cannot find module 'puppeteer',安装了puppeteer也没用
我配置了 ppteer.launch({}) 的相关参数,但是好像并没有效果。麻烦指导一下~
如题,是哪里出了问题? 另:能否启动 poppeteer 后,打开一个可视化的页面?起码能看到打开的样子是否正确,要不调试无从下手

请问一下,有很多页面需要登录之后才能正常预览和生成骨架屏,这里你们是如何来解决的呢? 配置 setExtraHTTPHeaders 吗 还是用puppeteer的setCookie来处理?
安装插件后 使用 dps init 就报这个错误
配置 ```js const dpsConfig = { url: 'https://baidu.com', // 待生成骨架屏页面的地址,用百度(https://baidu.com)试试也可以 output: { filepath: '/Users/w/work/example/index1.html', // 生成骨架屏的存放页面,一般为项目的入口页面 injectSelector: '#app' // 生成的骨架屏插入页面的节点 }, background: '#eee', animation: 'opacity 1s linear infinite;' } module.exports...
 puppeteer已经全局安装了,一直给我报这个错。。。