webpacking
webpack-ing, run webpack or webpack-dev-server with pickable custom configure
Help you to manage many of multiple verbose web configs through a custom config file
Install
$ npm install --save webpacking
Usage
var webpacking = ; ;
API
webpacking(runner, configs, [options])
runner
Type: string
webpack runner type what you want to run.
compile
: bundle bywebpack
server
: run server withwebpack-dev-server
configs
Type: string
path for custom webpack configure file. see below sample and tests for more information.
'use strict';var path = ;var webpack = ; moduleexports = modules: module: loaders: test: /\.jsx?$/ exclude: /node_modules/ loaders: 'babel-loader' test: /\.coffee$/ exclude: /node_modules/ loader: 'coffee-loader' test: /\.cjsx$/ exclude: /node_modules/ loaders: 'coffee' 'cjsx' app: entry: path output: path: path publicPath: 'dist/' filename: 'app.js' ... server: entry: path output: path: path publicPath: 'dist/' filename: 'app.js' ... ;
options
configs
the names of configures you want to set up for webpack
CLI
$ npm install --global webpacking
$ webpacking --help Usagewebpacking [runner] [input] [options] Options--configs: the names of configures. should be passed with `,` and no-space Examples $ webpacking compile ./webpack.config.js --configs=modules,app $ webpacking server ./webpack.config.js --configs=modules,server
License
MIT © ragingwind