how to get unplugin-vue-markdown working in quasar #17835
-
hello commuinty, i just tried with a quick fresh quasar project and the documentation but failed with
i followed the info for i understand that this error has to to with quasar already setting up Vue...
but that does not change anything -
for me that means: the main part of the plugin has done its work - i am open to any tips on this! sunny greetings |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
anybody any idea or tips in this direction? |
Beta Was this translation helpful? Give feedback.
-
got it working with: viteVuePluginOptions: {
// allows Vue to compile Markdown files
include: [/\.vue$/, /\.md$/],
}, will see if this helps me :-) as reference more of the config file: // Configuration for your app
// https://v2.quasar.dev/quasar-cli-vite/quasar-config-file
import { defineConfig } from '#q-app/wrappers'
import Vue from '@vitejs/plugin-vue'
import Markdown from 'unplugin-vue-markdown/vite'
export default defineConfig((/* ctx */) => {
return {
// extendViteConf (viteConf) {},
viteVuePluginOptions: {
include: [/\.vue$/, /\.md$/], // <-- allows Vue to compile Markdown files
},
vitePlugins: [
[
'vite-plugin-checker',
{
eslint: {
lintCommand: 'eslint -c ./eslint.config.js "./src*/**/*.{js,mjs,cjs,vue}"',
useFlatConfig: true,
},
},
{ server: false },
],
Markdown({
/* options */
}),
],
},
}
}) |
Beta Was this translation helpful? Give feedback.
got it working with:
will see if this helps me :-)
as reference more of the config file: