2.3.4
https://github.com/wansj/shift
1.meteor 创建项目名称 --full
2.meteor 移除火焰模板reactive-var standard-minifier-css
3.meteor 添加akryum:vue-component static-html jul iancwirko:postcss
4.在imports/ui/pages目录下创建App.vue和NotFound.vue,内容可以在https://github.com/wansj/shift/blob/master/imports/ui/pages/App.vue和https://github.com/wansj/shift/blob/master/imports/ui/pages/NotFound.vue
5.用https://github.com/wansj/shift/blob/master/imports/startup/client/routes.js替换imports/startup/client/routes.js
6.用https://github.com/wansj/shift/blob/master/imports/startup/client/index.js替换imports/startup/client/index.js
7.流星奔跑
帮助!
我正在写一个 vue 流星应用程序,我使用了akryum:[email protected]包。我的 vue 版本是 2.3.4,meteor 版本是 1.5。
Vue 有 2 个变体,runtime-only 在运行时没有template-compiler
,要使用standalone
构建,您可以使用import Vue from 'vue/dist/vue.esm.js'
而不是import Vue from 'vue'
。
PS 请使用论坛或gitter 提问,而不是在 github 上打开问题。
@nickmessing谢谢,我会试试的。
_import Vue from 'vue/dist/vue.esm.js'_ 导致Uncaught SyntaxError: Unexpected token export 。 因为 vue.esm.js 使用了 es6 模块导出,即使我添加了 p oorvavyas:es6-shim包,流星也无法识别。 但是 _import Vue from 'vue/dist/vue.js'_ 对我有用。
最有用的评论
Vue 有 2 个变体,runtime-only 在运行时没有
template-compiler
,要使用standalone
构建,您可以使用import Vue from 'vue/dist/vue.esm.js'
而不是import Vue from 'vue'
。PS 请使用论坛或gitter 提问,而不是在 github 上打开问题。