[英]How to remove the “Connected to BrowserSync” badge from lite-server in the browser
I've installed the John Papa's lite-server NPM package via VS Code console and it's working. 我通过VS Code控制台安装了John Papa的lite-server NPM软件包,它正在运行。 But, how can I remove the "Connected to BrowserSync" badge that appears in the browser every time a save a file - and it reloads the file automatically in the browser? 但是,如何在每次保存文件时删除浏览器中显示的“已连接到BrowserSync”徽章 - 并在浏览器中自动重新加载文件?
create a config file bs-config.js
创建配置文件bs-config.js
and add "notify": false
并添加"notify": false
module.exports = {
"notify": false,
};
if config file location is different from where server starts then specify it 如果配置文件位置与服务器启动的位置不同,则指定它
lite-server -c path/config-file-name.js
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.