diverently / laravel-mix-kirby Goto Github PK
View Code? Open in Web Editor NEWLaravel Mix helper for Kirby
Home Page: https://diverently.github.io/laravel-mix-kirby/
License: MIT License
Laravel Mix helper for Kirby
Home Page: https://diverently.github.io/laravel-mix-kirby/
License: MIT License
When using with laravel mix 6 in hmr mode $hmrHost returns http://localhost:808/ instead of http://localhost:808/.
I was able to fix by removing the following line:
Line 101 in 91fe17d
Hi there.
I am trying to use the Mix helper plugin on a Kirby installation with custom folder setup.
I am assigning the assets root
where the mix-manifest.json
can be found in the index.php
like so:
$kirby = new Kirby([
'roots' => [
'assets' => dirname(__DIR__, 2) . '/assets'
],
]);
Then setting the manifestPath
of the plugin in the config.php
like so:
return [
'diverently.laravel-mix-kirby.manifestPath' => kirby()->root('assets') . '/mix-manifest.json',
];
This returns an absolute URL which during local development has a leading /
. The /
is removed by the plugin here, and I therefor get the error that The Mix manifest does not exist.
.
Is there any way to work around this? Why does the /
have to be removed?
Any help would be appreciated. I love the plugin and have used it many times, only now running into difficulties with the custom folder setup.
Maybe you should add $options = []
to the mix function? I can make PR
See funkybrothas post in the forum.
Unfortunately I donβt know the Kirby way of handling errors. I've marked the lines in laravel-mix-kirby.php
with @TODO
's. I would love to get some help with that π
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.