Releases: nystudio107/craft-twigpack
Releases · nystudio107/craft-twigpack
Version 1.2.5
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
Changed
- Suppress errors for
styles.js
modules (which is a work-around to a webpack bug)
Version 1.2.3
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
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
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
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
- If this is a dev-server, look for the modern manifest file first
Version 1.1.13
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
istrue
log it as a warning, not an error
Version 1.1.12
Fixed
- Fixed an issue with
includeFileFromManifest()
not working due to recent changes
Version 1.1.11
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