open-source-language-learning

时间:2021-03-26 05:42:07
【文件属性】:
文件名称:open-source-language-learning
文件大小:5.93MB
文件格式:ZIP
更新时间:2021-03-26 05:42:07
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 ,因为这会阻止博客文章的呈现。
【文件预览】:
open-source-language-learning-master
----.gitignore(45B)
----.babelrc(122B)
----package.json(2KB)
----src()
--------style()
--------crawler()
--------components()
--------assets()
--------index.js(75B)
--------static()
--------template.html(1KB)
--------manifest.json(439B)
--------routes()
----.netlify()
--------state.json(53B)
----preact.config.js(486B)
----README.md(693B)
----tests()
--------__mocks__()
--------header.test.js(436B)
----prerender-urls.js(976B)
----netlify.toml(136B)
----content()
--------images()
--------blog()
----yarn.lock(526KB)

网友评论