easy-team / egg-react-webpack-boilerplate

Egg React Server Side Render(SSR) / Client Sider Render(CSR)
https://easyjs.cn/egg-react
MIT License
671 stars 93 forks source link

inject js时,怎样给script添加async属性 #36

Closed huminghao closed 5 years ago

huminghao commented 5 years ago

inject js时,怎样给script添加async属性?

hubcarl commented 5 years ago

服务端渲染暂不支持直接设置,可以自己通过 https://github.com/easy-team/egg-view-react-ssr/blob/master/config/config.default.js#L47 afterRender 处理

huminghao commented 5 years ago

@hubcarl OK