Tools
Minifiers
Remove whitespace, comments, and unnecessary characters from CSS and JavaScript.
Commands
echo "body { color: red; margin: 0; }" | devv pipe exec "minify-css"
echo "function hello() { return 'world'; }" | devv pipe exec "minify-js"
Examples
# Minify a CSS file
cat styles.css | devv pipe exec "minify-css"
# Minify JavaScript
cat script.js | devv pipe exec "minify-js"
# Minify and encode
cat styles.css | devv pipe exec "minify-css | base64-encode"
Pipeline Usage
| Pipeline ID | Description |
|---|---|
minify-css |
Remove whitespace from CSS |
minify-js |
Remove whitespace from JavaScript |
devv pipe exec "minify-css" "body { color: red; }"
devv pipe exec "minify-js | hash-generator sha256" "function x() { return 1; }"
Behavior
Both transform their input — the minified result passes to the next step.
Was this page helpful?