What are the Slack Archives?
Itโs a history of our time together in the Slack Community! Thereโs a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.
Because this space is not active, you wonโt be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..
Hello everyone, I am trying on importing a javascript and css file from a private npm package on Spr
Hello everyone, I am trying on importing a javascript and css file from a private npm package on Spryker Yves. Where should this two files be imported, so they can be built with the rest of the frontend resources?
Comments
-
Have you already tried one of the options shown here?
https://docs.spryker.com/docs/scos/dev/front-end-development/yves/adding-and-using-external-libraries-in-yves.html#adding-and-usin[โฆ]project-via-npm0 -
Yes, i have tried that. The issue is that there is not a specific method I want to use from the package, but I just want to import the whole js file and css file onto the Spryker FE build.
0 -
You can try to create a new entry point in your webpack configuration and link it from your page-layout:
https://github.com/spryker-shop/suite/blob/master/frontend/configs/development.js#L620
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 65 Spryker News
- 879 Developer Corner
- 743 Spryker Development
- 84 Spryker Dev Environment
- 360 Spryker Releases
- 3 Oryx frontend framework
- 33 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 22 Job Opportunities
- 3.2K ๐ Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 32 Product & Business Questions
- 68 Spryker Safari Questions
- 50 Random