Caching with Webpack, [hash] value inside index source code, using React.js

后端 未结 3 1567
情深已故
情深已故 2021-02-06 11:33

I\'m building an isomorphic application. It is completely built with react -- namely, the html base is also in react.

I have my root html as an app component.

It

3条回答
  •  清歌不尽
    2021-02-06 11:49

    You shouldn't be rendering your full HTML on the client, ever. Your head and everything outside your app div in body should just be sent from the server. That way your problem is solved right away, as your client-side Javascript doesn't need to know what file it lives in, and on the server you can just wait for the stats to be ready.

提交回复
热议问题