1.1.0 • Published 3 years ago
lightbox-lib v1.1.0
Install
- Via NPM:
Install NPM package - https://www.npmjs.com/package/lightbox-lib:
npm install lightbox-lib- The other way, you also can inject
lightbox-lib.jsfile into your HTML code:
<script src="/path/to/dist/lightbox-lib.js"></script>Usages
svelte example
<script lang="ts">
import { onMount } from "svelte";
import lighbox from "lightbox-lib";
onMount(() => {
lighbox();
});
</script>Development
$ yarn install
$ yarn devBuild
$ yarn buildor:
$ npm run buildThe dist folder is automatically created and include file lightbox.min.js