#!/bin/sh

# Stylesheets
cat css/fonts.css css/global.css css/main.css | cleancss --skip-advanced -o min/main.css


# JavaScript
uglifyjs js/main.js --mangle -o min/main.js

#!/bin/sh

# Stylesheets
cat css/fonts.css css/global.css css/main.css | cleancss --skip-advanced -o min/min.css


# JavaScript
uglifyjs js/main.js --mangle -o min/min.js

Change filenames of minified resources
Change filenames of minified resources

"Main" is a misleading choice for a minified file's name when one of the
source files it's generated from is also named "main". For example, it's
possible for a reader to misconstrue "min/main.css" as a compressed form
of "css/main.css" alone, not taking into account the preceding two files
prepended to it ("css/fonts.css" & "css/global.css").
