Commit 85b649b2 authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

Mise en place de Vite : ça marche!!

reste à documenter et faire du propre
parent 9e907f27
Loading
Loading
Loading
Loading
+1 −1
Changes for code/test3.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -15,4 +15,4 @@
<mission-test msg="Et voici mon test!"></mission-test>

<h2>Hello world</h2>
<hello-world msg="bonjour le monde!"></hello-world>
 No newline at end of file
<hello-world msg="bonjour le monde de partout!"></hello-world>
 No newline at end of file
+2 −2
Changes for front/components/HelloWorld.vue: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -15,7 +15,7 @@
    count is: {{ state.count }}
  </button>
  <p>
    Edit
    Edit bla bla
    <code>components/HelloWorld.vue</code>
  </p>
</template>
@@ -32,6 +32,6 @@ const state = reactive({count: 0})

<style scoped>
a {
  color: blue;
  color: yellow;
}
</style>
+1
Changes for module/Application/src/viteHelpers.php: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -24,6 +24,7 @@ function vite(string $entry): string

function isDev(string $entry): bool
{
    return true;
    // This method is very useful for the local server
    // if we try to access it, and by any means, didn't started Vite yet
    // it will fallback to load the production files from manifest
+2
Changes for module/Application/view/layout/layout.phtml: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -65,6 +65,8 @@ echo $this->doctype();
    <!-- Scripts globaux -->
    <script type="text/javascript" src="<?= $this->basePath('/vendor/jquery-3.6.0.min.js?v=' . $version) ?>"></script>
    <script type="text/javascript" src="<?= $this->basePath('/vendor/jquery-ui-1.12.1/jquery-ui.min.js?v=' . $version) ?>"></script>
    <script type="text/javascript" src="<?= $this->basePath('/vendor/vue.js?v=' . $version) ?>"></script>

    <?= vite('main.js') ?>
</head>

−6.69 KiB
Loading image diff...
Loading