Skip to content

Grunt compile but not display source map .less in browser In magento 2 #382

@gaurav-infino

Description

@gaurav-infino

Grunt Isuue with grunt-contrib-less in magento 2.4.4 or upper level version, grunt compile & genrate new css but not display source map .less in browser.

i have use magento 2.4.4 and 2.4.5 , this issue happen on both of versions. i have configure grunt properly & its css compile working but does not show source map in browser inspect element : like .less format. i have found issue in package.json
"grunt-contrib-less": "~2.1.0" change in to "grunt-contrib-less": "~1.4.1" downgrade version & it's appear source with .less format on browser inspect element & work perfectly. so may i know why issue happen in "grunt-contrib-less": "~2.1.0". please give me any solution.

"grunt-contrib-less": "~2.1.0" > "grunt-contrib-less": "~1.4.1"
npm install

thanks in advance

Gaurav

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions