Inline LitElement 加载器:Webpack 内联样式与装饰器

想要内联LitElement的外部样式和装饰器吗?试试Inline LitElement加载器吧。这是Webpack的一个插件,可轻松实现这一目标。使用简单,只需从GitHub克隆,通过npm安装,然后配置你的webpack.config.js文件即可。创建一个CSS文件定义你的样式,然后在你的LitElement组件中导入它。同样地,装饰器也可以被内联。这使得你的代码更加整洁,且减少了网络请求,提升了加载速度。

zip
inline-lit-element-loader-master.zip 预估大小:30个文件
folder
inline-lit-element-loader-master 文件夹
file
.gitignore 44B
file
package.json 2KB
folder
src 文件夹
file
inline-loader.ts 809B
file
webpack.config.js 1KB
file
tsconfig.json 304B
folder
tools 文件夹
file
server.ts 738B
file
tsconfig.json 143B
file
link.lib.ts 151B
file
unlink.ts 158B
file
link-loader.ts 175B
file
README.md 3KB
folder
demo 文件夹
folder
counter 文件夹
file
webpack.config.js 1KB
file
counter.spec.ts 415B
file
counter.scss 254B
file
index.html 351B
file
counter.ts 476B
folder
decorators 文件夹
folder
counter 文件夹
file
counter.js 412B
file
webpack.config.js 1KB
file
counter.spec.ts 415B
file
counter.scss 254B
file
index.html 363B
file
README.md 2KB
folder
hello-world 文件夹
file
webpack.config.js 1KB
file
index.html 367B
file
hello-world.ts 268B
file
hello-world.css 19B
folder
hello-world 文件夹
file
hello-world.js 316B
file
index.html 372B
file
hello-world.css 20B
file
yarn.lock 257KB
zip 文件大小:117.52KB