Javascripts

Use only ES6 Modules or CommonJS to load your dependencies. Check the src/js/app.js file

import defaultExport from 'module-name';
// or
const myModule = require('module-name');

To load external files or add a new tag <script /> check the Assets doc section.


Some options

DependencyInstallRepository
jqueryyarn add jqueryhttps://github.com/jquery/jquery
jquery-mask-pluginyarn add jquery-mask-pluginhttps://github.com/igorescobar/jQuery-Mask-Plugin
jquery fancyboxyarn add @fancyapps/fancyboxhttps://github.com/fancyapps/fancybox
imaskyarn add imaskhttps://github.com/uNmAnNeR/imaskjs
tiny-slideryarn add tiny-sliderhttps://github.com/ganlanyuan/tiny-slider
vanilla-lazyloadyarn add vanilla-lazyloadhttps://github.com/verlok/vanilla-lazyload
body-scroll-lockyarn add body-scroll-lockhttps://github.com/willmcpo/body-scroll-lock
object-fit-imagesyarn add object-fit-imageshttps://github.com/fregante/object-fit-images