【文件属性】:
文件名称:remote-styles:从Firebase远程配置中有条件地加载CSS
文件大小:206KB
文件格式:ZIP
更新时间:2021-02-05 08:44:59
css firebase firebase-remote-config FirebaseTypeScript
远程样式
从Firebase远程配置中有条件地加载CSS
状态:Alpha
安装
npm i remote-styles firebase
# OR
yarn add remote-styles firebase
基本范例
Webpack / Module Bundler的用法
import { initialize } from 'remote-styles' ;
async function importStyles ( ) {
// Be smart and lazy load. Dynamic styles
// are not likely needed for page l
【文件预览】:
remote-styles-master
----.travis.yml(473B)
----rollup.config.js(6KB)
----index.js(1KB)
----package.json(2KB)
----after.build.js(2KB)
----cypress()
--------integration()
----.github()
--------ISSUE_TEMPLATE()
----test()
--------index.test.ts(2KB)
--------firebase.config.ts(990B)
--------loader.test.ts(3KB)
----package-lock.json(406KB)
----CONTRIBUTING.md(1KB)
----src()
--------checkSheet.ts(1KB)
--------createSheet.ts(1KB)
--------checkFunction.ts(704B)
--------loader()
--------site()
--------types.ts(1KB)
--------index.ts(2KB)
--------cli()
----tsconfig.json(304B)
----samples()
--------simple()
--------webpack()
----.gitignore(711B)
----webpack.config.js(863B)
----cypress.json(42B)
----README.md(2KB)
----versions.json(61B)
----.opensource()
--------project.json(210B)
----LICENSE.txt(11KB)
----tsconfig.cli.json(180B)
----babel.config.js(132B)
----package.site.json(256B)