首页 > 解决方案 > 如何从 quasar 默认应用模板中删除路由器?

问题描述

我想开发一个只有一个根组件而没有所有 VueRouter 机器的应用程序,我使用 quasar cli 生成了该项目。

我清理了源目录以使用单个 A.vue 组件重新开始。

但是,编译过程会生成一个需要它的 app.js 文件(顺便说一下,我也想摆脱 app.scss)。怎么做 ?

(我不需要 SSR,但我可以构建到电子。)

标签: quasar-frameworkquasar

解决方案


You always need at least one "route" for your application to work with Quasar. Doesn't mean you have to use all their special stuff - just add a "/" base route and give it "component: A".

Pretty easy.


推荐阅读