449 B
449 B
Inspired by: github-fork-ribbon-css Using Webpack
Install
npm install .
Build
npm run prod
The JS bundle is then located in dist/
folder.
Usage
Just add (orientation can be left-bottom
, right-bottom
, right-top
or left-top
):
<script src="path/to/caracals-badge.js" orientation="left-bottom"></script>