Skip to content

Commit

Permalink
docs: format extra-webpack.config.js in FAQ
Browse files Browse the repository at this point in the history
  • Loading branch information
why520crazy committed Aug 30, 2020
1 parent 6234aa2 commit 51c16b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ export class OneComponent {
Because the portal app and sub app are packaged through webpack, there will be conflicts in module dependent files, we should set up additional config `runtimeChunk` through `@angular-builders/custom-webpack`, we expect webpack 5 to support micro frontend better.
```
// extra-webpack.config.js
{
optimization: {
runtimeChunk: false
}
Expand Down
1 change: 1 addition & 0 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ export class OneComponent {
因为主应用和子应用都是通过Webpack打包的,打包的版本依赖会有冲突,需要通过`@angular-builders/custom-webpack`插件设置扩展的`Webpack`配置`runtimeChunk`, 期望 Webpack 5 对于微前端支持的更好。
```
// extra-webpack.config.js
{
optimization: {
runtimeChunk: false
}
Expand Down

0 comments on commit 51c16b7

Please sign in to comment.