[nix] minify-bundle command added

parent 40d51410
Pipeline #1805 canceled with stage
......@@ -41,6 +41,13 @@ let
pulp browserify --skip-compile -t dist/bundle.js --src-path output
'';
minify-bundle = pkgs.writeShellScriptBin "minify-bundle" ''
#!/usr/bin/env bash
set -e
minify dist/bundle.js > dist/bundle.min.js
'';
repl = pkgs.writeShellScriptBin "repl" ''
#!/usr/bin/env bash
......@@ -68,6 +75,8 @@ pkgs.mkShell {
build-purs
build-watch
build
minify-bundle
pkgs.minify
repl
pkgs.pulp
pkgs.spago
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment