Skip to content

Releases: maxmilton/esbuild-minify-templates

v0.7.0

02 Nov 02:16
v0.7.0
a1bcb83
Compare
Choose a tag to compare

Note: Prior to v1.0.0, minor releases may contain breaking changes!

Removed

  • BREAKING CHANGE: Remove setting options via environment variables. They are now set when calling the plugin — #109

Changed

  • BREAKING CHANGE: Refactor into esbuild plugins — #109

Full changelog: v0.6.0...v0.7.0

v0.6.0

18 Oct 00:34
v0.6.0
5cfde3e
Compare
Choose a tag to compare

Added

  • Create output directories as required - #97
  • Move minify() options into opts argument

Changes

  • Clean up package.json
  • Update dependencies
  • Update documentation in README
  • Set TypeScript build target to ES2019 for better node v12 support

v0.5.1

06 Oct 01:32
v0.5.1
7d73d93
Compare
Choose a tag to compare

Changes

  • Update dependencies

v0.5.0

05 Jul 04:10
v0.5.0
4fdc283
Compare
Choose a tag to compare

Added

  • Feature to remove HTML comments

v0.4.0

09 May 12:52
v0.4.0
f8d0811
Compare
Choose a tag to compare

Changed

  • Extract minification logic into new exported minify function for standalone use

v0.3.0

09 May 12:51
v0.3.0
3843cd9
Compare
Choose a tag to compare

Changed

v0.2.0

02 May 23:39
v0.2.0
94e405e
Compare
Choose a tag to compare

Added

  • Minify tagged template literals only option via MINIFY_TAGGED_TEMPLATES_ONLY environment variable.

Fixed

  • Fix encoding/decoding to be more inline with esbuild internals and use correctly, including in tests + increase the minimum required node version to 12.
  • Explicitly note the ignore directive comments will not work with esbuild minify option true.
  • Add and improve tests.

v0.1.0

02 May 13:10
v0.1.0
6f54869
Compare
Choose a tag to compare

Added

  • New ignore directive comment feature; disable minification for a template literal by adding a /* minify-templates-ignore */ comment on the preceding line.
  • Specify minimum required node version.
  • Added unit tests and coverage reporting.

Fixed

  • Results are now correct when a template literal starts or ends on the first line.
  • writeFiles now waits until all files are written to disk.