wechat-miniprogram / kbone-template-vue

a simple vue template for kbone
MIT License
351 stars 86 forks source link

关于基于 @vue/cli 创建的项目问题 #14

Open xujz520 opened 4 years ago

xujz520 commented 4 years ago

demo:https://github.com/Tencent/kbone/tree/develop/examples/demo4 插件:https://github.com/Tencent/kbone/tree/develop/packages/vue-cli-plugin-kbone

Originally posted by @JuneAndGreen in https://github.com/wechat-miniprogram/kbone-template-vue/issues/13#issuecomment-643149778

xujz520 commented 4 years ago

kbone/examples/demo4/vue.config.js

module.exports = {
    pages: {
        page1: 'src/page1/main.js',
        page2: {
            entry: 'src/page2/main.js',
        },
        page3: 'src/page3/main.js',
    }
}
  1. 希望在H5中是单页应用, 在小程序中是多页应用
  2. 需要自定义 app.js 和 app.wxss

基于以上两点需求该如何配置?