Closed
Description
Summary (*)
Grunt generate wrong less sourceMaps path, both Chrome and Firefox can not find sourceMaps files
Environment
OS: Ubuntu 18.04 with apache and php 7.1.x
Magento Version: 2.3.0
How to Reproduce
- Download Magento 2.3.0 Open Source with Sample from Official Site.
- Install it on local server.
- Install and configure grunt according to https://devdocs.magento.com/guides/v2.3/frontend-dev-guide/css-topics/css_debug.html
- Run: grunt clean, grunt exec, grunt less:luma.
- Browser can not find less sourceMaps files.
It is very difficult to reproduce on on vanilla Magento instance, as the issue need a lot of CLI operations to install node.js, npm etc.
Examples (*)
Use Grunt to compile Less file, and Grunt add sourceMaps path is:
/*# sourceMappingURL=pub/static/frontend/Magento/luma/en_US/css/styles-l.css.map */
In order to let browser to find the sourceMpas file, it should be
/*# sourceMappingURL=styles-l.css.map */
Proposed solution
Try to change less.js but failed.
Metadata
Metadata
Assignees
Labels
Gate 2 Passed. Manual verification of the issue description passedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 1 Passed. Automatic verification of issue format passedGate 4. Acknowledged. Issue is added to backlog and ready for developmentThe issue has been reproduced on latest 2.3 release