webpack-recipes

0.1.0 • Public • Published

Webpack Recipes

Modular and pluggable command line for compiling and running webpack builds. Organize in recipes, each piece of your webpack build.

Installation:

npm install -g webpack-recipes

Recipes directory:

Create a directory called recipes at the root of your project, so all .js files will be included.

cd /my/project
mkdir recipes

Recipes

Recipes files must be a .js file and should export recipe and webpackConfig

module.exports.recipe = {
  name: 'test-app',
  version: '0.0.1',
  description: 'Sample App',
  scope: 'development'
};

The webpack configuration object must be a function that receives argv as a parameter

module.exports.webpackConfig = function (argv) {
  return {
    entry: {
      'test-app': './test-app.js'
    },
    ...
  };
};

Examples:

Readme

Keywords

none

Package Sidebar

Install

npm i webpack-recipes

Weekly Downloads

0

Version

0.1.0

License

MIT

Unpacked Size

10.1 kB

Total Files

12

Last publish

Collaborators

  • joaoneto