summaryrefslogtreecommitdiffstats
path: root/transform/livereloadinject_test.go
AgeCommit message (Collapse)Author
2018-08-06Add support for minification of final outputBjørn Erik Pedersen
Hugo Pipes added minification support for resources fetched via ´resources.Get` and similar. This also adds support for minification of the final output for supported output formats: HTML, XML, SVG, CSS, JavaScript, JSON. To enable, run Hugo with the `--minify` flag: ```bash hugo --minify ``` This commit is also a major spring cleaning of the `transform` package to allow the new minification step fit into that processing chain. Fixes #1251
2017-02-17all: Refactor to nonglobal Viper, i18n etc.Bjørn Erik Pedersen
This is a final rewrite that removes all the global state in Hugo, which also enables the use if `t.Parallel` in tests. Updates #2701 Fixes #3016
2016-06-30transform: Explicitly bind LiveReload to server portDragos Plesca
If hugo server is run on port 80 or 443, LiveReload does not correctly bind to the same port, instead using port 35729. This commit adds functionality to inform LiveReload of the correct port to bind to. See https://github.com/livereload/livereload-js/issues/16 Partially contributed by Jeff Minard (@chuyskywalker). Fixes #2205
2016-06-25helpers: Remove ToReader funcsCameron Moore
Remove StringToReader and BytesToReader in favor of using the stdlib directly.
2016-02-06transform: Add missing test case in livereloadinjectBjørn Erik Pedersen
* Test for both </body> and </BODY> * This also cosmetically changes the behaviour, as the case of the end body tag is kept.
2015-12-10Add copyright header to that source files that don’t have one.Anthony Fok
See #1646
2015-10-15Load livereload.js from "/"Kato Kazuyoshi
Fix #1406 Instead of loading the file from http://localhost:port/, it can be loaded from /.