bundler-plate

1.6.5 • Public • Published

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"
}

Package Sidebar

Install

npm i bundler-plate

Weekly Downloads

0

Version

1.6.5

License

MIT

Unpacked Size

16.7 kB

Total Files

34

Last publish

Collaborators

  • m.zekas90