微前端
负债两百万的蛋黄
财富自由是终极目标
展开
-
【vue项目的微前端】主项目和子项目的vue.config.js配置文件
子项目的vue.config.js:const packageName = require('./package.json').name;const Timestamp = new Date().getTime();module.exports = { publicPath: process.env.VUE_APP_PUBLIC_PATH, // transpileDependencies: ['common'], chainWebpack: config => config.re原创 2022-02-21 14:29:01 · 782 阅读 · 0 评论 -
qiankun踩坑笔记1
Application died in status LOADING_SOURCE_CODE: You need to export the functional lifecycles in xxx entryqiankun官方回答修改报错子项目的main.js文件import Vue from 'vue'import App from './App.vue'import router from './router'import store from './store'Vue.confi.原创 2021-03-27 21:49:28 · 5033 阅读 · 0 评论 -
微前端 qiankun 踩坑记--IE11兼容
非常非常简单,安装几个依赖:"core-js": "^3.6.4","custom-event-polyfill": "^1.0.7","fetch-polyfill": "^0.8.2","whatwg-fetch": "^3.2.0"然后在主项目的main.js中引入下列文件:import 'whatwg-fetch';import 'custom-event-polyfill';import 'core-js/stable/promise';import 'core-js/sta原创 2021-02-03 16:06:52 · 2654 阅读 · 10 评论