Componette

Componette

contributte

contributte / webpack 2.3.0

๐Ÿ“ฆ Webpack adapter for Nette Framework (@nette)

download-cloud-line composer require oops/webpack-nette-adapter

Website ๐Ÿš€ contributte.org | Contact ๐Ÿ‘จ๐Ÿปโ€๐Ÿ’ป f3l1x.io | Twitter ๐Ÿฆ @contributte

Usage

To install the latest version of contributte/webpack use Composer.

composer require contributte/webpack

Documentation

For details on how to use this package, check out our documentation.

Version

State Version Branch Nette PHP
dev ^2.0.x-dev master 3.0+ >= 8.1
stable ^2.0 master 3.0+ >= 8.1

Development

See how to contribute to this package.

This package is currently maintaining by these authors.


Consider to support contributte development team. Also thank you for using this package.

  • 2.3.0 2.3.0

    ๐Ÿ”ง Minimum required version of PHP is now 8.1, and up to 8.3 is supported.

  • 2.2.1 2.2.1

    • ๐Ÿ”ง Fully use Latte 3's Extension (#40)
  • 2.2.0 2.2.0

    • โœจ Added support for Latte 3 (#39)
  • 2.1.1 2.1.1

    • ๐Ÿž Assets that resolve to absolute URLs are returned as-is (#37, thanks @martenb!)
  • 2.1.0 2.1.0

    • โœจ You can now configure a timeout for manifest loading (#34)
    • ๐Ÿ”ง Manifest loads faster from the dev server (#33, thanks @martenb!)
  • 2.0.1 2.0.1

    • ๐Ÿž Fix: dynamic parameter not working for optimized manifest (#28, thanks @janfejtek!)
  • 2.0.0 2.0.0

    ๐ŸŽ‰ The package has been transferred to @contributte!

    The package is now available on Packagist both under the original name oops/webpack-nette-adapter and the new contributte/webpack. Both retain the same version history, but the latter is now preferred and the former is marked as abandoned in favour of the new package.

    The transition led to a breaking change in namespace to Contributte\Webpack. Please update your code and configuration accordingly.

    There should be no other breaking changes.

    tl;dr

    • composer remove oops/webpack-nette-adapter
    • composer require contributte/webpack
    • replace the namespace in your configuration:
      extensions:
      -     webpack: Oops\WebpackNetteAdapter\DI\WebpackExtension(%debugMode%, %consoleMode%)
      +     webpack: Contributte\Webpack\DI\WebpackExtension(%debugMode%, %consoleMode%)
  • 1.4.0 1.4.0

    • โœจ You can now use manifest plugins other than webpack-manifest-plugin, using mappers to map the plugin's structure to the flat structure expected by WebpackNetteAdapter. (#17, thanks @rattuscz!)
    • ๐Ÿ”ง Guzzle 7.0 is supported. (#18, thanks @solcik!)
  • 1.3.1 1.3.1

    • ๐Ÿž Fixed BuildDirectoryProvider pointing to public URL of dev server instead of the internal one if a public URL is configured. (#16)
  • 1.3.0 1.3.0

    • โœจ You can now configure the DevServer with a different internal and public URL for easier use in environments such as a Docker Compose network. (#13, thanks @martinjinda!)
  • 1.2.0 1.2.0

    • ๐Ÿ”ง Minimum required version of PHP is now 7.2, and up to 7.4 is supported.
    • ๐Ÿž AssetLocator trims extra leading slashes that might force the browser to treat the asset name as a protocol-less absolute URL.
    • ๐Ÿž WebpackNetteAdapter no longer tries to pre-load assets manifest when running the application in CLI, preventing failures when the assets are not built. If you use CLI to warmup DI container cache, you can bypass this behaviour by setting the OOPS_WEBPACK_OPTIMIZE_MANIFEST env variable to a truthy value.
    • โœจ You can configure AssetLocator to ignore certain asset names when the dev-server is available. Ignored assets are resolved to an empty Data URI. This is particularly helpful if you use style-loader in development which does not emit any CSS files.
  • 1.1.0 1.1.0

    • This release brings compatibility with Nette 3.0 ๐ŸŽ‰ (as well as Nette 2.4 at the same time). Also, PHP version requirement has been raised to 7.1.
    • Some hidden hard dependencies on Nette packages (such as nette/application or nette/http) have been removed, so that WebpackNetteAdapter can be employed even in less traditional development stacks.
    • The timeout of DevServer's heartbeat check is now configurable, defaulting to the current value of 100 ms.
bar-chart-fill

Statistics

download-cloud-fill
57469
star-fill
48
bug-fill
0
flashlight-fill
74d
price-tag-2-line

Badges

guide-fill

Dependencies

php (^7.1)
nette/di (^2.4.10 || ^3.0)
Componette Componette felix@nette.org