mix-helper-cr
mix-helper
Laravel Mix helper for including laravel mix assets in your templates.
[x] Support for mix-manifest files in custom directories
[x] Switch between hot reload and versioned assets without changing your templates
[x] Caches manifest files after first read to prevent repeated file access
Installation
-
Add the dependency to your
shard.yml
:dependencies: mix-helper: github: randomstate/mix-helper-cr
-
Run
shards install
Usage
require "mix-helper-cr"
include Mix::Helper # typically place this in your 'master' layout template
mix "/js/app.js"
# => //localhost:8080/js/app.js in hot-reload mode
# => //js/app.js?id=37a34fcaae4e87636c26 when using production (versioned) laravel-mix build
Contributing
- Fork it (https://github.com/randomstate/mix-helper-cr/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
Contributors
- Connor Forsyth - creator and maintainer
Repository
mix-helper-cr
Owner
Statistic
- 1
- 0
- 0
- 0
- 0
- over 4 years ago
- April 16, 2020
License
MIT License
Links
Synced at
Fri, 22 Nov 2024 01:38:37 GMT
Languages