import js fancybox with laravel via npm #466
Unanswered
InnovacionesSambel
asked this question in
Q&A
Replies: 1 comment
-
Hi, Sorry, I am not Laravel expert. I think you should simply follow the appropriate Laravel documentation (https://laravel.com/docs/7.x/mix) on how to include assets in the frontend. Maybe that helps,too - |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I have a project in Laravel 7 and I already installed fancybox through npm as indicated in the documentation "npm install --save @fancyapps/ui", I already imported the css, but when I wanted to import the js it doesn't recognize them, they could help me help please thank you
In the resources/js/app.js file I have tried to import it as follows:
with none of the above options it works for me.
In the resources/js/bootstrap.js file I have placed the following, but it doesn't work for me either
window.fancyapps = fancyapps;
Beta Was this translation helpful? Give feedback.
All reactions