webpack 传入参数

2021-3-15
$ webpack --myopt yes

webpack.config.js

const  argv  =  require('yargs').argv
console.log({argv})

评论区