All Projects → jantimon → extra-entry-webpack-plugin

jantimon / extra-entry-webpack-plugin

Licence: MIT license
Allows to add entry points with a defined output filename.

Programming Languages

javascript
184084 projects - #8 most used programming language

Extra Entry Webpack Plugin

npm version Dependency Status Build status js-semistandard-style

Installation

You must be running webpack on node 0.12.x or higher

Install the plugin with npm:

$ npm install --save-dev extra-entry-webpack-plugin

Basic Usage

Add the plugin to your webpack config as follows:

plugins: [
  new ExtraEntryWebpackPlugin({
    entry: 'entry-file.js',
    outputName: 'output.js'
  })
]

This basic configuration will compile entry-file.js to output.js independently from the general output file names.

Advanced Usage

You can also specify the context and entry name:

plugins: [
  new ExtraEntryWebpackPlugin({
    entry: 'entry-file.js',
    entryName: 'An additional entry',
    context: __dirname,
    outputName: 'output.js'
  })
]

Changelog

Take a look at the CHANGELOG.md.

Contribution

You're free to contribute to this project by submitting issues and/or pull requests. This project is test-driven, so keep in mind that every change and new feature should be covered by tests. This project uses the semistandard code style.

License

This project is licensed under MIT.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].