Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.3k views
in Technique[技术] by (71.8m points)

用vuecli搭建的项目,在修改css的时候,页面不会自己刷新

用vuecli搭建的项目,在修改css的时候,页面不会自己刷新,需要我自己手动刷新。
请问这个是正常的吗
需不需要装个什么插件?让他自己刷新吗?
我用的webstorm在谷歌浏览器上运行的。我看见已经打包完了。比如随便修改个颜色。页面不会自己去刷新。只能f5刷新


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
module.exports = {
    chainWebpack: config => {
        // 修复HMR
        config.resolve.symlinks(true);
    }
};

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...