docker-magento icon indicating copy to clipboard operation
docker-magento copied to clipboard

Magento 2.4.4 CSS source mappings

Open adavia opened this issue 2 years ago • 6 comments

Description CSS source mappings doesnt seem to be working on Magento 2.4.4. Looks like a downgrade on grunt-contrib-less could potentially fix this issue. More info on https://stackoverflow.com/questions/73234428/why-not-showing-less-file-path-in-browser-after-running-grunt-in-magento2

Steps To Reproduce

  1. Setup grunt on magento 2.4.4 with livereload

Expected Result CSS source mappings showing up

Actual Result Compiled CSS being shown up

adavia avatar Sep 14 '22 01:09 adavia

hi, just add this code sourceMapFileInline: 'true' to that file magento/dev/tools/grunt/configs/less.js inline 24

Yodzimbo avatar Nov 30 '22 18:11 Yodzimbo

Is this still an issue for anyone on 2.4.5-p1?

markshust avatar Dec 04 '22 13:12 markshust

I can confirm this is an issue with 2.4.6 Enterprise - see https://github.com/markshust/docker-magento/issues/878

stephen-larkbury avatar Mar 13 '23 23:03 stephen-larkbury

hi, just add this code sourceMapFileInline: 'true' to that file magento/dev/tools/grunt/configs/less.js inline 24

👍This worked for me on 2.4.6.

danielcbell avatar Mar 16 '23 11:03 danielcbell

Hi @danielcbell - I can confirm this worked for me too

stephen-larkbury avatar Mar 16 '23 11:03 stephen-larkbury

hi, just add this code sourceMapFileInline: 'true' to that file magento/dev/tools/grunt/configs/less.js inline 24

this worked for me too (2.4.6 community)

benasdeveloper avatar Mar 24 '23 04:03 benasdeveloper