Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for multiple configs #1

Open
raphaelrauwolf opened this issue Oct 6, 2015 · 2 comments
Open

Add support for multiple configs #1

raphaelrauwolf opened this issue Oct 6, 2015 · 2 comments

Comments

@raphaelrauwolf
Copy link

Since you are able to put multiple Webpack configs in to an array, it would be nice to use the outcome of that JSON as well! Maybe using a dropdown menu to switch between the modules. This might be a special case, but it is really easy to implement.

var modules = json.modules;

if (json.children) {
    modules = json.children[index].modules;    
}
@chrisbateman
Copy link
Owner

Interesting, I haven't seen that before. How do you configure that?

Could you send me an example of a stats file with this, so I can have something to test against? Email's on my profile page

@ferares
Copy link

ferares commented May 17, 2017

I have an example of this, my webpack.config.js exports an array with 2 configs [clientConfig, serverConfig] and the result of dropping the stats file onto the visualizer page is this error on the console:

Uncaught TypeError: Cannot read property 'forEach' of undefined
at n (build.js:23)
at e.handleFileUpload (build.js:18)
at FileReader.n.onloadend (build.js:23)

I've sent you an email with a link to the stats file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants