UNPKG

jetpack

Version:

Jetpack wraps webpack and nodemon to give you the best development workflow.

11 lines (8 loc) 412 B
const util = require('util') const wpConf = require('./webpack.config') module.exports = async function printConfig({ options, modern, log }) { log.info(modern ? 'Modern config\n' : 'Legacy config\n') const webpackConfigs = await wpConf(options, log) const webpackConfig = modern ? webpackConfigs.modern : webpackConfigs.legacy console.log(util.inspect(webpackConfig, { depth: null, colors: true })) }