magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.48k stars 9.29k forks source link

[Issue] add sourceMap generation for less files in developer mode #38982

Open m2-assistant[bot] opened 1 month ago

m2-assistant[bot] commented 1 month ago

This issue is automatically created based on existing pull request: magento/magento2#38977: add sourceMap generation for less files in developer mode


Description (*)

Currently when running magento 2 in developer mode with server-side less compilation it's very hard to detect where a style is coming from. The only workaround is to use Grunt. However the underlying library for less compilation supports sourcemap generation with a flag that can be toggled based on the mode magento is in.

Related Pull Requests

Fixed Issues (if relevant)

Manual testing scenarios (*)

  1. Switch magento 2 in developer mode
  2. Let it regenerate css from the less files
  3. Check inspector to see the source file responsible for the code

image image

Questions or comments

Contribution checklist (*)

engcom-Hotel commented 1 month ago

Hello @ioweb-gr,

Thanks for the report and collaboration!

We are confirming this issue for further processing.

Thanks

m2-assistant[bot] commented 1 month ago

Hi @engcom-Hotel. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:

github-jira-sync-bot commented 1 month ago

:white_check_mark: Jira issue https://jira.corp.adobe.com/browse/AC-12650 is successfully created for this GitHub issue.

m2-assistant[bot] commented 1 month ago

:white_check_mark: Confirmed by @engcom-Hotel. Thank you for verifying the issue.
Issue Available: @engcom-Hotel, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.