Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[question] Can I use npm or yarn for import javascript and css modules? #435

Open
francesco-loreti opened this issue Aug 28, 2024 · 2 comments

Comments

@francesco-loreti
Copy link

Hello!

I'm asking here because I've already searched everywhere with no luck.
I wanted to use npm or Yarn to import and, above all, keep the js and css libraries updated, avoiding having to check and download each time in the relevant folders in "/public".
When I use npm (or yarn), it creates the "node_modules" folder. Is there a way you think I can tell Zend to draw resources from there? How does the "composer" do for the "vendor" folder.

Thanks for any replies.

@develart-projects
Copy link
Collaborator

Search for .yarnrc

You need something like
--modules-folder public/static/components/

@francesco-loreti
Copy link
Author

Sound is Good!! Thanks 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants