Git Product home page Git Product logo

vue-module-loader's Issues

模块包主文件

你好,如何在模块包里面全局引入当前包公共插件?

moduleLoader加载moduleUrl模块失败

项目是用vue-module-creator创建的
module文件使用项目内builde:app命令打包,放在本项目public/module文件夹下面

app.$moduleLoader({

  logo: 'http://192.168.31.86:8081/module/logo/myAsync.umd.min.js'

}).then(() => {

  // 加载过程完毕

  console.log('加载完成')

})

app.$mount('#app')

使用moduleLoader加载控制台输出加载完毕页面没有相关模块的加载

模块自动卸载问题

比如 有多个模块 主应用, 应用A 应用B 应用C。。。
如果模块越来越多,就需要 模块退出后,自动卸载模块

404问题

配置了一个全局的path: "*"跳转到404,每次在加载模块包之前就直接跳到404了

404问题

配置了一个全局的path: "*"跳转到404,每次在加载模块包之前就直接跳到404了

vue2升级到vue3

已上线的项目使用的是vue-module-loader版本为1.0.3,请问可以升级容器为最新版本使用vue3,而子应用不变还是使用老版本vue2+vue-module-loader(1.0.3)吗?

引用模板

import Vue from 'vue'
import App from './App.vue'
import VueRouter from 'vue-router'
import Vuex from 'vuex'
import vueModuleLoader from 'vue-module-loader'
Vue.use(VueRouter)
Vue.use(Vuex)
const router = new VueRouter()
const store = new Vuex.Store()
Vue.use(vueModuleLoader, {
router, // 合并路由配置必传。
store // 合并状态配置必传。
})

let app = new Vue({
router,
store,
render: h => h(App, 'vue-module-loader'),
}).$mount('#app')

const moduleA = require('./admincraft-showcase.umd.js')

app.$moduleLoader(moduleA)
引用后打包后的模板 要怎么在页面上显示出来

模块自动卸载问题

比如 有多个模块 主应用, 应用A 应用B 应用C。。。
如果模块越来越多,就需要 模块退出后,自动卸载模块

嵌套路由

我本地测试发现了一个问题,就是嵌套路由会丢失母版页

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.