Skip to content

Instantly share code, notes, and snippets.

@floriangaechter
Last active October 10, 2015 04:48
Show Gist options
  • Save floriangaechter/3635999 to your computer and use it in GitHub Desktop.
Save floriangaechter/3635999 to your computer and use it in GitHub Desktop.
How to force users to minify their JS-files...
// You better minify this file before using it in production. To make
// sure we added a little something that will get you in legal trouble
// if you don't...
//
// .-/ \ / =-\-.
// _.-~ / \___ ______ __ _ _ _ /___| ~-._
// \ / -~|| __||_ __// || | | | /| | / __/| .\ /
// / . . || __| | |\ / ' || |__| |_/ | || (_/ | \
// / / ~| ||____| |_| /_/|_||____|____||_| \___\| |\ \
// / / |-~\ \ \ \ | || || | // / / /~-| \ \
// / /__ / \ \____\|\_\|_/|_||____|___//_/\/___/ / __\ \
// / .-~\ \-~ ~-/\/~-. \
// /.-~ \ / ~-.\
// /~ .- -. ~\
// \ .-~ ~-. /
// \.-~ ~-./
//
// ...or do you want to be the next napster?
@floriangaechter
Copy link
Author

Just add this to the bottom of every JavaScript file...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment