Minify livereload.js

This commit is contained in:
Vincent Prouillet 2017-05-15 17:11:14 +09:00
parent b2c3adff37
commit d9ed7df118
3 changed files with 5 additions and 1157 deletions

File diff suppressed because one or more lines are too long

View file

@ -23,6 +23,10 @@ enum ChangeKind {
StaticFiles,
}
// Uglified using uglifyjs
// Also, commenting out the lines 330-340 (containing `e instanceof ProtocolError`) was needed
// as it seems their build didn't work well and didn't include ProtocolError so it would error on
// errors
const LIVE_RELOAD: &'static str = include_str!("livereload.js");

View file

@ -391,5 +391,4 @@ fn test_can_build_site_with_pagination_for_index() {
assert!(file_contains!(public, "index.html", "Last: https://replace-this-with-your-url.com/"));
assert_eq!(file_contains!(public, "index.html", "has_prev"), false);
assert_eq!(file_contains!(public, "index.html", "has_next"), false);
}