Twigpack Changelog.

Link 1.1.11 · 2019-10-15

changed - 2019-10-15

  • Revert a PR that caused Twigpack to no longer gracefully fall back on locally built assets if the webpack-dev-server is not running
  • Add a short timeout to file_get_contents to prevent it from taking too long if the file doesn't exist

Link 1.1.10 · 2019-10-03

changed - 2019-10-03

  • Changed examples to use ’dev’ for local development (instead of ’local’)

Link 1.1.9 · 2019-10-01

added - 2019-10-01

  • Added getModuleHash() function, to grab the hash key of a module

changed - 2019-10-01

  • Fixed an issue where isHot was not set before use
  • Fixed getFileFromManifest() to load files from webpack-dev-server

Link 1.1.8 · 2019-08-06

changed - 2019-08-06

  • Added cacheKeySuffix to the Settings model

Link 1.1.7 · 2019-06-05

changed - 2019-06-05

  • Clarify expected output with no second param
  • Code cleanup

Link 1.1.6 · 2019-05-05

changed - 2019-05-05

  • Fixed an issue where null could potentially be passed in to resolveTemplate()

Link 1.1.5 · 2019-03-24

changed - 2019-03-24

  • Fixed a typo in the twigpack-manifest-cache cache key
  • Changed deprecated \Twig_Markup to \Twig\Markup
  • Elaborated on Twigpack's caching and how to clear it in the README.md

Link 1.1.4 · 2019-01-22

changed - 2019-01-22

  • Handle the case where there is an error decoding the JSON from the manifest
  • Updated the documentation to reflect using @webroot/ by default for the server manifestPath

Link 1.1.3 · 2018-10-31

changed - 2018-10-31

  • Make includeCriticalCssTags() and includeInlineCssTags() soft errors that do nothing if the file is missing

Link 1.1.2 · 2018-10-25

added - 2018-10-25

  • Added the ability for Hot Module Replacement (HMR) to work through Twig error template pages via the errorEntry setting in config.php

Link 1.1.1 · 2018-10-16

changed - 2018-10-16

  • Fixed an issue where if the manifest.json was served remotely via https, Twigpack was unable to load it
  • Made all errors "soft" for missing CSS/JS modules, so a warning will be logged, but life continues on

Link 1.1.0 · 2018-10-09

added - 2018-10-09

  • Strings passed in to manifestPath can now be Yii2 aliases as well
  • Added craft.twigpack.includeFile()
  • Added craft.twigpack.includeFileFromManifest()
  • Added craft.twigpack.includeInlineCssTags()
  • Added craft.twigpack.includeCriticalCssTags()

Link 1.0.5 · 2018-09-28

changed - 2018-09-28

  • Check via empty() rather than !== null when checking the manifest for module entries
  • CSS module loading generates a soft error now, rather than throwing an NotFoundHttpException

Link 1.0.4 · 2018-09-28

added - 2018-09-28

  • Added this.onload=null; to async CSS link tag
  • Added craft.twigpack.includeCssRelPreloadPolyfill()

changed - 2018-09-28

  • Better error reporting if modules don't exist in the manifest

Link 1.0.3 · 2018-09-24

changed - 2018-09-24

  • Allow the manifestPath to be a file system path or a URI

Link 1.0.2 · 2018-09-23

added - 2018-09-23

  • Added getModuleUri() function
  • Added getManifestFile() function

changed - 2018-09-23

  • Fixed return types to allow for null
  • Code refactoring

Link 1.0.1 · 2018-09-22

added - 2018-09-22

  • Better error logging if the manifest file can't be found (check storage/logs/web.log)
  • Throw a NotFoundHttpException if the manifest.json cannot be found

Link 1.0.0 · 2018-09-21

added - 2018-09-21

  • Initial release