I want to use Aurelia in a Laravel 5 application, but I'm having difficulties with bootstrapping Aurelia.
I installed Aurelia in the public/test folder of Laravel. Then, renamed the default index.html that comes with the Aurelia skeleton app to index.php. The content in there is this:
<!DOCTYPE html>
<html>
<head>
<title>Aurelia</title>
<link rel="stylesheet" href="<?= URL::asset('test/styles/styles.css'); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body aurelia-app>
<script src="<?= URL::asset('test/jspm_packages/system.js'); ?>"></script>
<script src="<?= URL::asset('test/config.js'); ?>"></script>
<script>
SystemJS.import('aurelia-bootstrapper');
</script>
</body>
</html>
But the bootstrapping is not working because it's trying to load Aurelia from the following location:
http://localhost/cms/public/index.php/jspm_packages/npm/aurelia-bootstrapper@1.0.0-beta.1.1.2.js
Note that index.php is in the URL. This basically prevents it from loading the right file.
How can I solve this issue in Laravel?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire