alexjoverm / v-runtime-template

Vue component for compiling templates on the fly using a v-html like API
MIT License
605 stars 70 forks source link

这个项目好像已经停止维护了,希望下面的东西对大家有帮助 #86

Open LittleTom opened 2 years ago

LittleTom commented 2 years ago

下面是一个基于本项目的` vue3-runtime-template 项目

https://github.com/mattelen/vue3-runtime-template


如果是vite启动,你需要按照下面的方法修改 vite.config.js ,亲测有效!

import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';

// https://vitejs.dev/config/
export default defineConfig({
    resolve: {
        alias: {
            vue: 'vue/dist/vue.esm-bundler.js'
        }
    },
  plugins: [
      vue()
  ]
})
zuo305 commented 1 year ago

Really helpful. Thank you @LittleTom.