chenjianhui
chenjianhui
好的非常感谢
部署其实就是两步: 1. 编译打包得到静态页面文件 2. 将静态页面文件放置到 web 服务器中,这个 web 服务器可以是 Tomcat、Nginx、甚至是 GithubPages ## 先说第一步 - [birth-want-to-say](https://github.com/calebman/girlfriend-gift-collection/tree/master/birth-want-to-say) 这个项目由于本身就是静态页面文件了,所以直接将源代码放到 web 服务器即可 - [chat-want-to-say](https://github.com/calebman/girlfriend-gift-collection/tree/master/chat-want-to-say) 这个项目由于使用了 vite 构建,需要经过一层编译才能得到静态页面文件,可以参考 https://cn.vitejs.dev/guide/ 获得 vite 相关帮助,届时你也能够了解项目的目录结构代表什么 ## 再说第二步 -...
你好,请问指的是哪方面的渲染,能提供下重现步骤么?
这是由于script 包裹的代码块通过 Vue.extend 编译出 Vue 对象,再调用其 $mount() 方法挂载到示例 dom,而非使用 vue-template-compiler 编译使其无法链接到注册组件导致的。 可以试试 https://github.com/calebman/vuepress-plugin-demo-container 个人会尽可能维护做好
script 包裹的代码块通过 Vue.extend 编译出 Vue 对象,再调用其 $mount() 方法挂载到示例 dom,而非使用 vue-template-compiler 编译使其无法链接到注册组件导致的。 可以试试 https://github.com/calebman/vuepress-plugin-demo-container
Try this plugin https://github.com/calebman/vuepress-plugin-demo-container? Good support for examples.