简体   繁体   中英

Why not showing less file path in browser after running grunt in magento2?

While I am running grunt, I am not able to see less file paths into the browser inspect element in magento2 click here

In magento 2.4.4 version CSS source mapping not working Mostly for front end when working with grunt we used devdoc but some time its not working so here is another solution for this Edit [Root]/package.json file and update the version of grunt-contrib-less to 1.4.1

"grunt-contrib-less": "~1.4.1"

then run npm install

that's it. It will work for css source mapping.

Thanks, it's working. I'm facing this issue for quite a while and finally, I found this solution working for me.

Thanks, It's working like charm.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM