Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

生成骨架屏是空白 #35

Open
kingzez opened this issue Apr 20, 2021 · 0 comments
Open

生成骨架屏是空白 #35

kingzez opened this issue Apr 20, 2021 · 0 comments

Comments

@kingzez
Copy link

kingzez commented Apr 20, 2021

配置

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 = dpsConfig;

dps -v 1.0.8

dps start
skeleton screen has created and output to /Users/w/work/example/index1.html

/Users/w/work/example/index1.html 内容

<html><head></head><body></body></html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant