From bcf8948c4620bfe05280afd33f43d9aada3465d9 Mon Sep 17 00:00:00 2001 From: chronoDave Date: Mon, 21 Oct 2024 22:15:04 +0100 Subject: [PATCH] Added "Assets" to watch --- bin.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bin.js b/bin.js index 406df0e..6659984 100644 --- a/bin.js +++ b/bin.js @@ -41,7 +41,11 @@ const config = createConfig( } ); -const files = config.files.map(file => path.resolve(config.root, file)); +const files = [ + ...config.files.map(file => path.resolve(config.root, file)), + ...config.assets.map(file => path.resolve(config.root, file)) +]; + const bundle = () => { const ts = performance.now(); run(config);