catamphetamine / universal-webpack

Isomorphic Webpack: both on client and server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

webpack-chunks.json configurable request

lonelyclick opened this issue · comments

I have two entrys in my webpack file and start it separately, but webpack-chunks.json always be covered,so at 'universal.settings.js':

module.exports = {
  server: {input: 'xxx', output: 'xxx'}
  chunkFilename: 'xxxx-webpack-chunk.json' 
}

please support it #43

Explain more on your situation: why do you have two entries in Webpack configuration.
I can see why some people may have 2 entries: for code splitting (e.g. "photos", "blog", "forum").
But what's your case?

I have two react + redux applications, A and B, A is an independent application with a AppHeader component. AppHeader contains a number of complex components, these components need API organization redux data, you want to split the AppHeader is more difficult. B is a different application, it needs AppHeader and most of the logic is not consistent with A. So I can only put A and B into a repo, make two entrances. And later there will be more similar to the B application, even with the splitting code separately, it will become increasingly difficult to maintain.

Published universal-webpack@0.1.41