importmap-laravel

Use ESM with import maps to manage modern JavaScript in Laravel without transpiling or bundling.

MIT License

Downloads
106.5K
Stars
133
Committers
3

Bot releases are visible (Hide)

importmap-laravel - 1.2.0

Published by tonysm over 2 years ago

Changelog

  • CHANGED: The importmap:install command was changed to work with the new Vite setup in Laravel. It should also still work on installs in the Laravel 8 frontends setups using Mix.
importmap-laravel - 1.1.1

Published by tonysm over 2 years ago

Changelog

  • FIXED: The importmap:pin command was breaking depending on the package name because we needed to wrap the package name using the preg_quote to escape it. Otherwise, some characters might become part of the regex itself. https://github.com/tonysm/importmap-laravel/pull/16
importmap-laravel - 1.1.0

Published by tonysm over 2 years ago

importmap-laravel - 1.0.0

Published by tonysm over 2 years ago

Changelog

importmap-laravel - 0.4.1

Published by tonysm over 2 years ago

Changelog

  • FIXED: Pinned directories were not working on Windows because we're using / instead of \. Anyways, that should be fixed now. Define the directories with / as you would on any Unix/Linux OS and the package will make sure that gets converted to the correct directory separator when dealing with file paths and to the / separator when dealing with URIs https://github.com/tonysm/importmap-laravel/pull/5
importmap-laravel - 0.4.0

Published by tonysm over 2 years ago

Changelog

  • CHANGED: Changes the manifest filename to be .importmap-manifest.json (with a dot prefix) so it can be included in the Vapor artifact (which doesn't remove dotfiles by default).
  • ADDED: Adds a new config entry for the manifest location. If you have published your importmap.php config file, make sure you re-publish that (no need to publish it if you haven't done that)
importmap-laravel - 0.3.0

Published by tonysm over 2 years ago

Changelog

  • CHANGED: Laravel 9 support (nothing really changed in the app, just the version constraints)
importmap-laravel - 0.2.0

Published by tonysm over 2 years ago

Changelog

  • FIXED: The manifest already had the final asset URL on it, which is handled by the optimize command, so we don't need to call the asset resolver when the manifest exists
  • NEW: Added an AssetResolver invokable class which should add a ?digest=$HASH to the asset URL, which is useful for cache busting while in local development. This won't be used in production as the optimize command already generates the full URLs there, which means the AssetResolver won't be called
  • CHANGED: The entrypoint was made optional and it defaults to the app module, which matches the "entrypoint" file in the default Laravel install (resources/js/app.js)
Package Rankings
Top 11.23% on Packagist.org