Skip to content

A CLI generates a starter config file for webpack/gulp with the most commonly used and recommended configurations.

License

Notifications You must be signed in to change notification settings

mahmoudZakaria90/bundler-plate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

96 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bundler-plate

A CLI generates a starter config file for webpack/gulp with the most commonly used and recommended configurations.

"Bundler-plate demo"

Installation

npm i -D bundler-plate
Or
yarn add -D bundler-plate

Usage

  • Run bp or npx bp.
  • Give inputs/answers to the generated questions.

For Webpack Add these 2 npm scripts to your package.json:

"scripts": {
   ...
   "build": "cross-env NODE_ENV=prod webpack", 
   "serve": "cross-env NODE_ENV=dev webpack-dev-server"
}

For gulp Add these 3 npm scripts to your package.json:

"scripts": {
   ...
   "build": "gulp", 
   "serve": "gulp serve",
   "watch": "gulp watch"
}

About

A CLI generates a starter config file for webpack/gulp with the most commonly used and recommended configurations.

Topics

Resources

License

Stars

Watchers

Forks