Open DieterHolvoet opened 6 months ago
Hello, how do you add the plugin in a vite.config.js/ts
file ?
Maybe try adding it while defining the vite config like this example :
import { defineConfig } from 'vite';
import viteDrupalTemplateHMR from "vite-plugin-drupal-template-hmr"
export default defineConfig({
base: '/themes/custom/default/dist',
plugins: [
viteDrupalTemplateHMR({
templateBase: 'themes/custom/default/',
}),
],
...
});
I'm trying out this plugin, but I can't get it to work. When a HMR happens, the following error is displayed:
config.plugins.push(viteDrupalTemplateHMR({}))
vite --host