-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
集中式页面配置 #12
Comments
好建议,我们会调研一下方案 |
可以考虑采用 集中配置的话,感觉对开发者还是不友好,与现在一样,容易忘记切换文件去配置。 |
给集中式页面配置补充一些功能建议:
export default {
mpType: 'page',
config: {
...
}
} 优先级:页面vue组件的 config > 页面的 config > 公共的 config,并且三者会合并。 |
如果这样写配置的话,通用配置可以通过 mixin 引入。就看提取配置的难度。 |
@b2nil custom block 的想法很赞 <template></template>
<script></script>
<style></style>
<config>
// app / page config
</config> 可以考虑支持下将 |
@fengzilong |
feat: support use .vue file as entry, closes #12
Vue.extend 的语法暂不支持解析,这些我会放在另一个 issue 里面处理 |
config配置 megalo-aot/examples/vue-mp/src/pages/counter/index.vue Lines 60 to 64 in ca2274f
webpack配置:
理论上,app和page应该都可以直接指定.vue文件作为入口了 升级对应的 @megalo/target 版本即可:@megalo/[email protected] |
能像mpvue-entry集中式页面配置,自动生成各页面的入口文件?现在的页面配置方式会产生很多的模板文件(eg: pages/index/index.js)和模版代码:
看着好痛苦啊
The text was updated successfully, but these errors were encountered: