Webpack-Bricks
simply webpack config use standard brick function
[ Now Support Webpack ^4.0
] powered by config-brick
let's start by a simple vue config
const $ = const conf = // that's it!// because use outputJson()// you will find a config.json in process.cwd() location,that's the final config file jsonmoduleexports = conf
auto install devDependencies
because it could use async function,so now it will auto install devDependencies
custom brick
use standard brick function(SBF) to build config
const $ = const fn1 = { confa = 1 return conf} // use it// -> {a:1}
pass SBF arguments
const fn2 = { confb = optsb return conf} // -> {b:2}
initialSeedConfig
// -> {a:1,c:3}
config-brick
some internal bricks from merge
concat when it's array
// -> {a:[1,2],b:3 // or use directory a: 1 2 b: 2 // -> {a:[1,2],b:3}
custom brick with auto-install deps
// custom.jsconst deps = module { // sync install deps confcustom = customOptions: options return conf } // webpack.config.jsconst $ = const custom = const conf = console// -> {// custom:{// customOptions: { c : 3 }// }// }