F-loat / mpvue-entry

⛓️ 集中式页面配置,统一构建入口,支持新增页面热更新
MIT License
353 stars 56 forks source link

哥有没有适配mpvue2.0的计划 #108

Open fengzhiqiang012 opened 5 years ago

fengzhiqiang012 commented 5 years ago

megalo 总感觉编译很慢

slimvan commented 3 years ago

main.js 发一下

解决了,少了个依赖 感谢感谢

同问少了什么依赖

zhoufanglu commented 3 years ago

main.js 发一下

解决了,少了个依赖 感谢感谢

同问少了什么依赖

不记得了,好久远的问题了, 这年代不合适用mpvue了, 兄弟 建议用别的

slimvan commented 3 years ago

main.js 发一下

解决了,少了个依赖 感谢感谢

同问少了什么依赖

不记得了,好久远的问题了, 这年代不合适用mpvue了, 兄弟 建议用别的

好的 谢谢 我是用原生的,接手别人一个mpvue的项目,配置都整半天...

zhoufanglu commented 3 years ago

main.js 发一下

解决了,少了个依赖 感谢感谢

同问少了什么依赖

不记得了,好久远的问题了, 这年代不合适用mpvue了, 兄弟 建议用别的

好的 谢谢 我是用原生的,接手别人一个mpvue的项目,配置都整半天... 下面是我之前的main.js


import Vue from 'vue'
import MpvueRouterPatch from 'mpvue-router-patch'
import App from '@/App'
import store from '@/store'

//全局变量 import prototype from '../src/js/prototype'

//全局组件 import headComponent from "./components/global/headComponent"; import footComponent from "./components/global/footComponent"; import transparentHead from "./components/global/transparentHead"; import message from "./components/global/message";

//全局常量 import '@/js/prototype'

Vue.use(MpvueRouterPatch) Vue.use(prototype) Vue.config.productionTip = false //mockjs import useMock from './mock/mock' useMock(false)

//mixins /import mixins from "./js/mixins"; console.log(27, mixins) Vue.mixin({ mounted(){ console.log('666') } })/

Vue.component('headComponent', headComponent) Vue.component('footComponent', footComponent) Vue.component('transparentHead', transparentHead) Vue.component('message', message)

const app = new Vue({ mpType: 'app', store, ...App }) app.$mount()