
how to load javascript in custom module in backoffice.
Options

Shubham.Sharma22
Staff Engineer Unconfirmed Posts: 2 🧑🏻🚀 - Cadet
I am trying to add assets directly Pyz/Zed/CustomModule/Presentation/Assets/js/custom-script.js but it's not fetching in backoffice.
0
Answers
-
You have to create a JS named "<modulename>.enty.js
Inside of that you can "require" more js-data.
The standard search and build-functionality for ZED looks for this pattern: **/Zed/**/*.entry.js0 -
I have already created and after creating i run following command but still when i am trying to load any page it's showing 404 error
- frontend:zed:build
- cache:empty-all
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 86 Spryker News
- 989 Developer Corner
- 838 Spryker Development
- 92 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 36 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 33 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
- 33 Product & Business Questions
- 70 Spryker Safari Questions
- 50 Random