WebPack - Entry point

> (World Wide) Web - (W3|WWW) > Web - Building and Shipping > Web - WebPack

1 - About

An entry point indicates which module webpack should use to begin building out its internal dependency graph. Every dependency is then processed and outputted into files called bundles.

3 - Configuration

Entry points can be given in the webpack.config.js] file.

module.exports = {
  entry: {
    app: './src/app.js',
    vendors: './src/vendors.js'
  }
};

Shorthand for only one entry point

module.exports = {
  entry: './path/to/my/entry/file.js'
};
Advertising

4 - Documentation / Reference