Skip to content

andrewmarino/kirby-laravel-mix-helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Kirby Laravel Mix Helper

Laravel’s mix() helper function adapted to a Kirby 3 plugin.

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <title>App</title>
    <link rel="stylesheet" href="<?php echo mix('css/app.css'); ?>" />
  </head>
  <body>
    <div id="app"><h1>Hello World</h1></div>

    <script src="<?php echo mix('js/app.js'); ?>"></script>
  </body>
</html>

Installing

Manual

Grab a ZIP of this repo and place everything into site/plugins/kirby-laravel-mix-helper.

Composer

In progess!

Options

This plugin assumes the location of mix-manifest.json and its referenced files are in the default assets folder of your Kirby installation.

For custom folder setups, the path can be updated with the following setting in your Kirby site config:

/**
 * /site/config/config.php
 */
return [
  'laravel.mix.manifest_directory' => 'assets'
];

Further Reading

License

MIT

About

Kirby 3 + Laravel Mix

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages