From a18bce84656a52ecce9cf58052aadd766a2cc95a Mon Sep 17 00:00:00 2001 From: baurine <2008.hbl@gmail.com> Date: Fri, 3 Dec 2021 18:41:47 +0800 Subject: [PATCH] watch all files not just ts --- builder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builder.js b/builder.js index 53c86ee..f8db352 100644 --- a/builder.js +++ b/builder.js @@ -45,7 +45,7 @@ const buildParams = { const builder = await build(buildParams) if (isDev) { - watch('src/**/*.{ts,tsx}', { ignoreInitial: true }).on('all', () => { + watch('src/**/*', { ignoreInitial: true }).on('all', () => { builder.rebuild() })