Closed
Description
This issue is automatically created based on existing pull request: #32434: Seperate js out template to avoid render issue
Description (*)
Main purpose of this PR to seperate js out of template avoid mix js-in-php
Previously if we set store to production with minify enabled. When access backend will raise error because phtml can't render properly
Reference var/log/system.log
Related Pull Requests
Fixed Issues (if relevant)
- Fixes magento/magento2#<issue_number>
Manual testing scenarios (*)
- Switch to production mode
bin/magento config:set --lock-env dev/template/minify_html 1
bin/magento config:set --lock-env dev/js/enable_js_bundling 0
bin/magento config:set --lock-env dev/js/merge_files 0
bin/magento config:set --lock-env dev/js/minify_files 0
bin/magento config:set --lock-env dev/js/move_script_to_bottom 1
3. Clear cache and run deploy static content for backend area
4. Login to admin
Questions or comments
Contribution checklist (*)
- Pull request has a meaningful description of its purpose
- All commits are accompanied by meaningful commit messages
- All new or changed code is covered with unit/integration tests (if applicable)
- All automated tests passed successfully (all builds are green)
Metadata
Metadata
Assignees
Labels
The issue has been fixed in 2.4-develop branchGate 3 Passed. Manual verification of the issue completed. Issue is confirmedA defect with this priority could have functionality issues which are not to expectations.May be fixed according to the position in the backlog.The issue has been reproduced on latest 2.4-develop branchMajor restrictions or short-term circumventions are required until a fix is available.
Type
Projects
Status
Done