webpack-get-dlls
Version:
Get DLL configs from a webpack config
15 lines (12 loc) • 363 B
JavaScript
var configPath = './webpack.config.js'
if (process.argv[0] && process.argv[0].length > 2) {
configPath = process.argv.slice(-1)[0]
}
try {
var config = require(configPath)
var res = require('./index.js')(config)
res.dlls.forEach((dll) => console.log(dll.name))
} catch (err) {
console.error('error:', err.message)
}