summaryrefslogtreecommitdiffstats
path: root/minifiers/minifiers_test.go
AgeCommit message (Collapse)Author
2021-06-14Misc config loading fixesBjørn Erik Pedersen
The main motivation behind this is simplicity and correctnes, but the new small config library is also faster: ``` BenchmarkDefaultConfigProvider/Viper-16 252418 4546 ns/op 2720 B/op 30 allocs/op BenchmarkDefaultConfigProvider/Custom-16 450756 2651 ns/op 1008 B/op 6 allocs/op ``` Fixes #8633 Fixes #8618 Fixes #8630 Updates #8591 Closes #6680 Closes #5192
2021-03-20deps: Bump github.com/tdewolff/minify/v2 v2.9.15Bjørn Erik Pedersen
Fixes #8332
2021-02-18deps: Update github.com/tdewolff/minify/v2 v2.6.2 => v2.9.13Bjørn Erik Pedersen
Fixes #8258
2020-12-16all: Fix minor typosPhil Davis
2020-12-03all: Format code with gofumptBjørn Erik Pedersen
See https://github.com/mvdan/gofumpt
2020-10-07Revert "deps: Update to github.com/tdewolff/minify v2.9.4"Bjørn Erik Pedersen
Closes #7792 This reverts commit b254532b52785954c98a473a635b9cea016d8565.
2020-09-19deps: Update to github.com/tdewolff/minify v2.9.4Bjørn Erik Pedersen
2020-03-20Some minify configuration adjustmentsBjørn Erik Pedersen
2020-03-20Add minify configSatowTakeshi
Fixes #6750 Updates #6892
2019-11-03minifiers: Add a JSON roundtrip testBjørn Erik Pedersen
See #6472
2019-08-12tests: Convert from testify to quicktestBjørn Erik Pedersen
2018-12-07minifiers: Fixx CSS2 color code handlingBjørn Erik Pedersen
Fixes #5506
2018-09-12minifiers: Make JSON minification more genericJames Kiefer
Add a regex matcher for json types. Specifically support LD+JSON which allows for google seo minification out of the box. Expanded JS/JSON minification testing.
2018-08-28Improve minifier MIME type resolutionBjørn Erik Pedersen
This commit also removes the deprecated `Suffix` from MediaType. Now use `Suffixes` and put the MIME type suffix in the type, e.g. `application/svg+xml`. Fixes #5093
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