Ken Xu

Results 106 comments of Ken Xu

webpack config for development ```js { mode: 'development', devtool: 'inline-source-map', output: { path: '/Users/ken/Desktop/develop/MicroFE/emp-workspace/projects/antd-base/dist', filename: 'js/[name].[contenthash:8].js', publicPath: 'http://localhost:8003/' }, resolve: { alias: { src: '/Users/ken/Desktop/develop/MicroFE/emp-workspace/projects/antd-base/src' }, extensions: [ '.js', '.jsx',...

```json "@pmmmwh/react-refresh-webpack-plugin": "https://github.com/pmmmwh/react-refresh-webpack-plugin#main", ``` it no work for me https://github.com/module-federation/module-federation-examples/issues/138#issuecomment-654614565

![image](https://user-images.githubusercontent.com/3890513/100505414-bc193480-31a7-11eb-9b12-8b9bef10e6f1.png)

![image](https://user-images.githubusercontent.com/3890513/100507007-3649b900-31a8-11eb-83fb-cd556c67fb05.png)

+ `git clone https://github.com/efoxTeam/emp` + `lerna bootstrap` + `cd projects && yarn dev:hot` + change `https://github.com/efoxTeam/emp/blob/main/projects/demo1/src/bootstrap.tsx` & throw error

![image](https://user-images.githubusercontent.com/3890513/100568031-f2b89180-3304-11eb-844d-aadf35623383.png) Fixed cross domain issues, but page changed from hot to refresh

![image](https://user-images.githubusercontent.com/3890513/100573696-5cd83300-3313-11eb-9cfa-89931f21819a.png)

I found that there would be problems when project a was import into project B

`liveReload` is disabled ![image](https://user-images.githubusercontent.com/3890513/100583184-505cd600-3325-11eb-8d42-c3ddf35a76e9.png) I found possible problems