Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

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

修复 HMR(热更新)失效

我的问题很简单。
之前也提了个问题:
https://ostack.cn/q/10...
就是用vuecli4搭建的项目。里面css修改页面没有自动刷新。
网上的答案说配置一下vue.config.js
但是我加了这个代码也不行:

module.exports = {
    chainWebpack: config => {
        // 修复HMR
        config.resolve.symlinks(true);
    }
};

然后我又看了一篇文章:
https://blog.csdn.net/xingmei...
说是要安装配置webpack
难道vuecli没有自动去下载webpack这些吗?全都要自己去手动安装吗?还有我的这个问题怎么解决呢?


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

1 Answer

0 votes
by (71.8m points)

cli4可以自动刷新css的


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
...