Skip to content

Releases: craftamap/esbuild-plugin-html

v0.8.0

28 Aug 19:34
Compare
Choose a tag to compare

What's Changed

  • Template: don't call lodashTemplate if define param is undefined by @denis-ok in #46
  • feat: allow predicate to be specified for inlining by @craftamap in #52
  • Replace lodash.template with latest lodash by @severian in #59
  • Use scriptLoading configuration option in inline scripts as well by @munkiwarra in #61
  • feat!: disable es6-like string interpolation ${} when compiling templates by @craftamap in #62
  • feat: add initial test setup by @craftamap in #58

New Contributors

Full Changelog: v0.6.1...v0.8.0

v0.7.0

13 May 19:02
Compare
Choose a tag to compare

What's Changed

  • Template: don't call lodashTemplate if define param is undefined by @denis-ok in #46
  • feat: allow predicate to be specified for inlining by @craftamap in #52
  • Replace lodash.template with latest lodash by @severian in #59

New Contributors

Full Changelog: v0.6.1...v0.7.0

v0.6.1

04 Jul 19:05
Compare
Choose a tag to compare

v0.6.0 is not published because I messed up the release process.

What's Changed

  • Feature: option to inline js and css files by @ninxadev in #39
  • config: support hash option (#40) by @vpanta in #41

New Contributors

  • @ninxadev made their first contribution in #39
  • @vpanta made their first contribution in #41

Full Changelog: v0.5.0...v0.6.1

v0.5.0

29 Dec 12:11
Compare
Choose a tag to compare

BREAKING CHANGES

This release is bringing a breaking change in regards of finding related (*.css) files. In previous versions, in order to find the related CSS file for each script, we used file name/path to search for which CSS file matches. However, esbuild now includes the information which CSS file to use for each bundle in it's metafile since 0.15.10. It is therefore recommended to use at least version 0.15.10 of esbuild to encounter no unexpected behavior.

Previously, the behavior of finding the related CSS file was enabled by the flag findRelatedOutputFiles, which was true by default. The findRelatedOutputFiles flag is still available, and enables the old behavior of using the path to find the related CSS file. However, it's now false by default, and will be removed in a upcoming version. Instead, it is now recommended to use the findRelatedCssFiles flag, which uses the new described behaviour. findRelatedCssFiles is true by default.

If you didn't change the value of findRelatedOutputFiles before, most likely nothing changed for you. However, if you disabled findRelatedOutputFiles previously, you might now also want to disable findRelatedCssFiles.

What's Changed

  • build(deps): bump minimatch from 3.0.4 to 3.1.2 by @dependabot in #37
  • fix(favicon): use publicPath with favicon by @craftamap in #38
  • css: use esbuild's new cssBundle field to get related css bundles (#33) by @craftamap in #34

Full Changelog: v0.4.0...v0.5.0

v0.4.0

06 Oct 19:15
Compare
Choose a tag to compare

What's Changed

Meta

The release was already released in April of 2022, sorry for the delayed release notes.

Full Changelog: v0.3.3...v0.4.0

v0.3.3

12 Apr 12:24
Compare
Choose a tag to compare

What's Changed

  • related-files: add option to disable finding related files (#16) by @craftamap in #17
  • fix: replacing all usages of path.join with posixJoin (#29) by @craftamap in #30

Full Changelog: v0.3.2...v0.3.3