Skip to content

joaoneto/webpack-recipes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

Releases

No releases published

Packages

No packages published