integrated vuejs with vitejs and hmr to drupal theme

This commit is contained in:
2024-07-15 16:34:28 +02:00
parent 5bd2fc7ee0
commit b4077639be
26 changed files with 1645 additions and 2347 deletions

View File

@ -0,0 +1,23 @@
import { createApp } from 'vue'
import '../scss/main.scss'
import Etape from './vuejs/Etape.vue'
/**
* @file
* reha behaviors.
*/
(function (Drupal) {
'use strict';
Drupal.behaviors.reha = {
attach: function (context, settings) {
console.log('It works!');
createApp(Etape).mount('#etape-modale');
}
};
} (Drupal));

View File

@ -0,0 +1,13 @@
<template>
<div>
hello HMR :)
</div>
</template>
<script>
</script>
<style>
</style>