From d160de00d338c45cd22d4bc583e5c4d8053d87fc Mon Sep 17 00:00:00 2001 From: ndom91 Date: Sun, 12 Sep 2021 01:12:11 +0200 Subject: [PATCH] fix: simplify dev reload --- netbox/project-static/develop.js | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/netbox/project-static/develop.js b/netbox/project-static/develop.js index cdbcf2842..33749ac7e 100644 --- a/netbox/project-static/develop.js +++ b/netbox/project-static/develop.js @@ -1,4 +1,4 @@ -const { exec, execSync } = require('child_process'); +const { execSync } = require('child_process'); const chokidar = require('chokidar'); const sassWatcher = chokidar.watch('styles/**/*.scss'); @@ -7,14 +7,7 @@ const tsWatcher = chokidar.watch('src/**/*.ts'); const collectStatic = type => { console.log('[*] bundling..'); execSync(`node bundle.js ${type && `--${type}`}`); - - console.log('[*] collecting..'); - exec('../../venv/bin/python3 ../manage.py collectstatic --no-input', (err, stdout, stderr) => { - err && console.error(`[**] Error: ${err}`); - stdout && console.log(`[*] ${stdout.trim()}`); - stderr && console.log(`[**] Python Err: ${stderr.trim()}`); - console.log('[*] waiting..\n'); - }); + console.log('[*] waiting..\n'); }; sassWatcher.on('change', path => {