Package Exports
- xt-weather-widget
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (xt-weather-widget) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
xt-weather-widget
A weather widget based on zepto.
How to use?
- npm i xt-weather-widget
- add
<div class="xt-weather" id="xt-weather"></div>in any place you want to put it. import initEl from 'xt-weather-widget'- after page loaded.You can perform
initEl()