Broke page styles of Vue.js app (Webpack template) when live changing it in Chrome DevTools

后端 未结 4 1130
后悔当初
后悔当初 2021-02-14 06:54

Steps to reproduce

I have application bootstrapped from vue-cli with a webpack template. I\'m running it on Chrome 65.0.3325.146

4条回答
  •  甜味超标
    2021-02-14 07:31

    I find another solution. Thanks to answer of @munstrocity regarding changing cheap-module-eval-source-map to eval-source-map. Unfortunately, this change didn't fix for me my styles in Chrome Dev Tools but give me good point to check.

    After a bit I found, that changing cacheBusting: true, to false in config/index.js help to solve that and now it's possible to change style in Chrome Dev Tools.

    // file: config/index.js
    
    ...
    // If you have problems debugging vue-files in devtools,
    // set this to false - it *may* help
    // https://vue-loader.vuejs.org/en/options.html#cachebusting
    cacheBusting: false,
    ...
    

    Hope this will help anyone! :)

提交回复
热议问题