esbuild-minify-templates

Minify template literal strings as part of an esbuild powered build process.

MIT License

Downloads
1.3K
Stars
12
Committers
5
esbuild-minify-templates - v0.11.0 Latest Release

Published by maxmilton over 1 year ago

What's Changed

Full Changelog: https://github.com/maxmilton/esbuild-minify-templates/compare/v0.10.0...v0.11.0

esbuild-minify-templates - v0.10.0

Published by maxmilton over 1 year ago

What's Changed

Full Changelog: https://github.com/maxmilton/esbuild-minify-templates/compare/v0.9.3...v0.10.0

esbuild-minify-templates - v0.9.3

Published by maxmilton almost 2 years ago

What's Changed

Full Changelog: https://github.com/maxmilton/esbuild-minify-templates/compare/v0.9.2...v0.9.3

esbuild-minify-templates - v0.9.2

Published by maxmilton about 2 years ago

What's Changed

  • Accept a wider range of esbuild peer dependency versions; ^0.13.0 || ^0.14.0 || ^0.15.0

Full Changelog: https://github.com/maxmilton/esbuild-minify-templates/compare/v0.9.1...v0.9.2

esbuild-minify-templates - v0.9.1

Published by maxmilton about 2 years ago

What's Changed

  • chore: Update dependencies
    • Minimum required esbuild peer dependency version is now ^0.15.0

Full Changelog: https://github.com/maxmilton/esbuild-minify-templates/compare/v0.9.0...v0.9.1

esbuild-minify-templates - v0.9.0

Published by maxmilton about 2 years ago

What's Changed

Full Changelog: https://github.com/maxmilton/esbuild-minify-templates/compare/v0.8.0...v0.9.0

esbuild-minify-templates - v0.8.0

Published by maxmilton over 2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/maxmilton/esbuild-minify-templates/compare/v0.7.3...v0.8.0

esbuild-minify-templates - v0.7.3

Published by maxmilton over 2 years ago

What's Changed

  • Update dependencies

Full Changelog: https://github.com/maxmilton/esbuild-minify-templates/compare/v0.7.2...v0.7.3

esbuild-minify-templates - v0.7.2

Published by maxmilton almost 3 years ago

esbuild-minify-templates - v0.7.1

Published by maxmilton almost 3 years ago

What's Changed

  • Updated dependencies

Full Changelog: https://github.com/maxmilton/esbuild-minify-templates/compare/v0.7.0...v0.7.1

esbuild-minify-templates -

Published by maxmilton almost 3 years ago

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

Removed

Changed


Full changelog: https://github.com/maxmilton/esbuild-minify-templates/compare/v0.6.0...v0.7.0

esbuild-minify-templates -

Published by maxmilton about 3 years ago

Added

Changes

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

Published by maxmilton about 3 years ago

Changes

  • Update dependencies
esbuild-minify-templates -

Published by maxmilton over 3 years ago

Added

  • Feature to remove HTML comments
esbuild-minify-templates -

Published by maxmilton over 3 years ago

Changed

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

Published by maxmilton over 3 years ago

Changed

esbuild-minify-templates -

Published by maxmilton over 3 years ago

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.
esbuild-minify-templates -

Published by maxmilton over 3 years ago

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.
Package Rankings
Top 6.06% on Npmjs.org
Badges
Extracted from project README
Build status Coverage status NPM version NPM bundle size (minified + gzip) Licence