【问题标题】:Why not showing less file path in browser after running grunt in magento2?Why not showing less file path in browser after running grunt in magento2?
【发布时间】:2022-11-20 23:08:03
【问题描述】:

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

【问题讨论】:

    标签: browser frontend gruntjs e-commerce magento2


    【解决方案1】:

    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.jsonfile and update the version of grunt-contrib-less to 1.4.1

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

    then runnpm install

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

    【讨论】:

      【解决方案2】:

      Hy guys, im̀ developing on Magento 2.4.5 with a custom theme child of Magento/luma. But i get error as:

      Running "less:premiershop" (less) task

      Destination pub/static/frontend/Premiershop/default/pt_BR/css/styles-m.css not written because no source files were found. Destination pub/static/frontend/Premiershop/default/pt_BR/css/styles-l.css not written because no source files were found.

      Sounds like my child theme dont get styles-l.less and styles-m.less from parent.

      【讨论】:

        猜你喜欢
        • 2022-12-01
        • 2022-12-02
        • 2022-11-09
        • 2022-12-31
        • 2022-12-27
        • 2022-12-02
        • 2013-11-14
        • 2022-12-02
        • 2022-08-05
        相关资源
        最近更新 更多