Skip to content
This repository has been archived by the owner on Jul 30, 2019. It is now read-only.
/ laravel-page-mix Public archive

Parse mix-manifest.json to automatically implement the Javascript named after the current route.

Notifications You must be signed in to change notification settings

mscharl/laravel-page-mix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

laravel-page-mix

This package parses your mix-manifest.json to automatically implement the Javascript named after the current route.

Setup

Add the service provider to the config/app.php provider array

MScharl\LaravelPageMix\Provider\LaravelPageMixProvider::class,

Use pageMix() instead of mix('page.js')

<script src="{{ pageMix() }}"></script>

Config

Publish the config file by executing the following command:

php artisan vendor:publish --provider=MScharl\\LaravelPageMix\\Provider\\LaravelPageMixProvider

It allows to configure a default file path if the route does not match any file name

About

Parse mix-manifest.json to automatically implement the Javascript named after the current route.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages