A PowerShell script to minify typical website-projects with html, CSS and JavaScript-files.
- htmlcompressor for html
- YUI Compressor for css and JavaScript
Download minify.ps1 and the compressors listed above. Put the script into your project folder. Specify the paths to html, CSS and JavaScript-files in the script (Section # Variables
).
-html
for html-files-css
for CSS-files-js
for JavaScript-files- No parameters for all