英文:
How to create a typescript watcher for phoenix?
问题
我尝试过:
watchers: [
esbuild: {Esbuild, :install_and_run, [:default, ~w(--sourcemap=inline --watch)]},
tailwind: {Tailwind, :install_and_run, [:default, ~w(--watch)]},
tsc: ["--noEmit --watch"]
]
但似乎不起作用。我不确定我漏掉了什么。
英文:
I tried:
watchers: [
esbuild: {Esbuild, :install_and_run, [:default, ~w(--sourcemap=inline --watch)]},
tailwind: {Tailwind, :install_and_run, [:default, ~w(--watch)]},
tsc: ["--noEmit --watch"]
]
But that doesn't appear to work. I am not sure what I am missing.
答案1
得分: 1
我明白了
watchers: [
...
typescript: [
".assets/node_modules/typescript/bin/tsc",
"--noEmit",
"--watch"
]
]
英文:
Ah I got it
watchers: [
...
typescript: [
".assets/node_modules/typescript/bin/tsc",
"--noEmit",
"--watch"
]
]
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论