deno - 除非重新启动服务器,否则 Denjucks 模板中的更改不会反映在刷新上
问题描述
我正在使用“deno”和“oak”。对于自动刷新,我使用的是类似于 nodejs 中的“nodemon”的“denon”。作为模板引擎,第三方模块,我正在使用 - 'denjucks'。每当我对模板代码进行任何更改并保存时,服务器都不会自动重新启动。如何解决这个问题?
解决方案
您可以使用exts
选项并添加html
.
{
"scripts": { /* */ },
"watcher": {
// The number of milliseconds after the last change.
"interval": 350,
// The file extensions that it will scan for.
"exts": ["js", "ts", "json", "html"],
// The globs that it will scan for.
"match": ["*.*"],
// The globs that it will not scan for.
"skip": ["*/.git/*"],
// Use the legacy file monitoring algorithm. (walking)
"legacy": false
}
}
推荐阅读
- c# - 使用 Serilog .NET Core 进行日志记录不输出
- python - 测试 TF 服务模型失败,字节为字符串,字符串为字节混淆
- c# - 当我将项目上传到生产机器时,为什么我在 ASP.NET Windows 窗体中的标签是 ufo 字体?
- node.js - NodeJs 无法从 ReactJs 表单中捕获数据发布
- c++ - 是否有任何用于正向和反向迭代器的迭代器包装器?
- java - 未找到处理程序 - Java 11 问题?
- sql - sql laravel 中“round”的参数不正确
- python - 执行器映射似乎不是处理生成器
- sql-server - 需要帮助编写更新查询以避免使用循环
- python - 如何为在另一个列表中找到的一个列表中的项目返回真/假