fis3 icon indicating copy to clipboard operation
fis3 copied to clipboard

无法识别自定义扩展名的文本文件

Open fisker opened this issue 7 years ago • 0 comments

  • 操作系统:
  • Node版本:
  • FIS版本: 3.4.40
  • 解决方案:
  • 依赖插件:

简单读了下源代码。 这个commit,https://github.com/fex-team/fis3/commit/eadc96bfe112d5d4cf5eb349e8a2b6e195bcb5c2 , 导致我使用的 .jst (类似ejs,rExt是html) 文件被识别成非文本,跳过了编译。

如果确定这里要这样修改 那么 util.js 里面 TEXT_FILE_EXTS 没暴露 应该没法修改吧 我现在想到的只能修改 isTextFile 函数。

请确认该如何增加自定义的文本扩展名

fisker avatar Nov 16 '18 09:11 fisker