webpack split node modules from app
<p>My stack:
NodeJS + react +... + gulp + webpack 2.1</p>

<p>When transpiling ES6 to common JS, I want to split my project code in two bundles: one with node modules, the other with my app code only. How to do that without specifying explicitly each module to put into the node-module-bundle.</p>

<p>From <a href="https://webpack.github.io/docs/code-splitting.html#split-app-and-vendor-code" rel="nofollow">Webpack documentation</a>, I see no way to specify a directory that should be used as an entry. Does anyone know how to do that?</p>

<p>Regards</p>