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

后端 未结 4 1127
后悔当初
后悔当初 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:35

    Inside your webpack config file you can try to enable source map for your sass loader configuration.

    You need to edit your file as follow:

    module.exports = {
        css: {
            loaderOptions: {
                sass: {
                    sourceMap: true
                }
            }
        }
    }
    

提交回复
热议问题