If built with --enable-debug, do not minify app.js and chart.js.
@@ -99,6 +99,9 @@ if HAS_SEDTR
else
./bin2c $(srcdir)/resources/js/charts.js src/chartsjs.h charts_js
endif
+if DEBUG
+ ./bin2c $(srcdir)/resources/js/charts.js src/chartsjs.h charts_js
+endif
# App.js
src/appjs.h: bin2c$(EXEEXT) $(srcdir)/resources/js/app.js
if HAS_SEDTR
@@ -107,6 +110,9 @@ if HAS_SEDTR
else
./bin2c $(srcdir)/resources/js/app.js src/appjs.h app_js
endif
+if DEBUG
+ ./bin2c $(srcdir)/resources/js/app.js src/appjs.h app_js
+endif
confdir = $(sysconfdir)/goaccess
dist_conf_DATA = config/goaccess.conf
