I try to include PhotoSwipe into my project. And the question how to right way to include all the lib files, JS, CSS and images.
I do something like this -
yarn add photoswipe
Than at bottom of esources/assets/js/bootstrap.js I add
window.PhotoSwipe = require('photoswipe');
But I also need include extra JS (photoswipe-ui-default.js) not described in package.json, don't sure is this a correct way?
mix.copy('node_modules/photoswipe/dist/photoswipe-ui-default.js', 'public/js');
<script src="" defer></script>
And also the question how to include skin files?
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2MmmSGk
via IFTTT
Aucun commentaire:
Enregistrer un commentaire