Set DEBUG using envify; options reference checks restored
[dygraphs.git] / make-prod-combined.sh
diff --git a/make-prod-combined.sh b/make-prod-combined.sh
new file mode 100755 (executable)
index 0000000..a95c612
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/bash
+browserify \
+  -v \
+  -t babelify \
+  -t [ envify --NODE_ENV production ] \
+  --debug \
+  --standalone Dygraph \
+  src/dygraph.js \
+  | uglifyjs -c -m \
+  > dist/dygraph.js