npm 自定义参数
// shell 命令执行
const shell = require('shelljs')
// 获取npm 的参数
const argv = require('yargs').argv
shell.exec('npm run build -- --module=' + argv.module)
shell.exec()
npm 自定义参数
// shell 命令执行
const shell = require('shelljs')
// 获取npm 的参数
const argv = require('yargs').argv
shell.exec('npm run build -- --module=' + argv.module)
shell.exec()