Table of Contents

WebPack - Entry point

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.

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'
};

Documentation / Reference