This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const path = require('path'); | |
| const { VueLoaderPlugin } = require('vue-loader'); | |
| const MiniCssExtractPlugin = require('mini-css-extract-plugin'); | |
| const HtmlWebpackPlugin = require('html-webpack-plugin'); | |
| const { ModuleFederationPlugin } = require('webpack').container; | |
| module.exports = (env = {}) => ({ | |
| mode: 'development', | |
| cache: false, | |
| devtool: 'source-map', | |
| optimization: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <template> | |
| <div class="home-container"> | |
| <h4 class="home-header">Top Header Home App</h4> | |
| </div> | |
| </template> | |
| <script> | |
| </script> | |
| <style> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { createApp, defineAsyncComponent } from "vue"; | |
| import App from "./App.vue"; | |
| const Main = defineAsyncComponent(() => import('home/main')); | |
| const app = createApp(App) | |
| app.component('header-element',Main) | |
| app.mount("#app"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const path = require('path'); | |
| const { VueLoaderPlugin } = require('vue-loader'); | |
| const MiniCssExtractPlugin = require('mini-css-extract-plugin'); | |
| const HtmlWebpackPlugin = require('html-webpack-plugin'); | |
| const { ModuleFederationPlugin } = require('webpack').container; | |
| module.exports = (env = {}) => ({ | |
| mode: 'development', | |
| cache: false, | |
| devtool: 'source-map', | |
| optimization: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "private": true, | |
| "workspaces": ["container", "home"] | |
| } |