preact-netlify-1

时间:2021-03-26 13:00:45
【文件属性】:
文件名称:preact-netlify-1
文件大小:5.92MB
文件格式:ZIP
更新时间:2021-03-26 13:00:45
JavaScript 博客 CLI命令 # install dependencies yarn # serve with hot reload at localhost:8080 yarn dev # build for production with minification yarn build # run tests with jest and preact-render-spy yarn test 有关工作原理的详细说明,请参阅。 注意:预渲染时,模块作为组件在大多数Web API不可用的Node.js环境中执行。 为了解决这个问题,可以将代码包装在检查中,例如if (typeof window !== 'undefined') 。 不要在build命令中添加preact build --no-prerender ,因为这会阻止博客文章的呈现。
【文件预览】:
preact-netlify-1-master
----.babelrc(122B)
----content()
--------images()
--------blog()
----.netlify()
--------state.json(53B)
----prerender-urls.js(976B)
----package.json(2KB)
----preact.config.js(486B)
----tests()
--------__mocks__()
--------header.test.js(436B)
----src()
--------style()
--------index.js(75B)
--------crawler()
--------template.html(1KB)
--------assets()
--------routes()
--------manifest.json(439B)
--------static()
--------components()
----netlify.toml(136B)
----.gitignore(45B)
----README.md(693B)
----yarn.lock(488KB)

网友评论