Skip to content

Releases: nystudio107/craft-twigpack

Version 1.2.5

14 Aug 14:03
Compare
Choose a tag to compare

Changed

  • Fixed a regression from the styles.js error suppression that would cause it to throw an exception if you attempted to load it

Version 1.2.4

12 Aug 19:25
Compare
Choose a tag to compare

Changed

  • Suppress errors for styles.js modules (which is a work-around to a webpack bug)

Version 1.2.3

24 Jun 17:18
Compare
Choose a tag to compare

Added

  • Added the ability to pass down an $attributes array to functions that generate tags, so you can add arbitrary HTML attributes

Version 1.2.2

26 May 03:50
Compare
Choose a tag to compare

Added

  • Added cspNonce setting to allow for Content Security Policy nonce support for inline CSS/JS

Changed

  • Switched over to using Yii2's Html:: helpers for creating various tags

Version 1.2.1

04 May 18:57
Compare
Choose a tag to compare

Added

  • Added the config setting devServerBuildType to determine which webpack-dev-server bundle is loaded.
  • Support passing an array of filenames for errorEntry

Version 1.2.0

28 Feb 18:39
Compare
Choose a tag to compare

Changed

  • Switched over to using media="print" for asynchronously loading a stylesheet as per The Simplest Way to Load CSS Asynchronously
  • Deprecated craft.twigpack.includeCssRelPreloadPolyfill() since it is no longer necessary. It now does nothing

Version 1.1.14

04 Feb 22:19
Compare
Choose a tag to compare
  • If this is a dev-server, look for the modern manifest file first

Version 1.1.13

22 Jan 18:34
Compare
Choose a tag to compare

Added

  • Added the config setting useAbsoluteUrl to control whether module URLs will be forced to be fully qualified aboslute URLs

Changed

  • If we're in devMode invalidate the cache immediately
  • If an error is reported, and self::$isHot is true log it as a warning, not an error

Version 1.1.12

12 Nov 15:35
Compare
Choose a tag to compare

Fixed

  • Fixed an issue with includeFileFromManifest() not working due to recent changes

Version 1.1.11

15 Oct 15:29
Compare
Choose a tag to compare

Changed

  • 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