02 / 03

How to set multiple targets?

Although webpack does not support multiple strings being passed into the target property, you can create an isomorphic library by bundling two separate configurations:

The example will create a lib.js and lib.node.js file in your dist folder: