Created
August 3, 2013 13:16
-
-
Save tleen/6146417 to your computer and use it in GitHub Desktop.
Using html-minifier in node
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Not totally obvious from the documentation, but to use html-minifier in node, you need to import the .minify function | |
! var minify = require('html-minifier'); | |
var minify = require('html-minifier').minify, | |
Did not see a node usage pattern out there. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment