Passing command line arguments to webpack.config.js

前端 未结 4 784
甜味超标
甜味超标 2021-01-03 17:44

I have a simple webpack.config.js

module.exports = {
  entry: \"./app.js\",
  output: {
    filename: \"bundle.js\"
  },
}

And I want to p

4条回答
  •  南笙
    南笙 (楼主)
    2021-01-03 18:12

    You may use argv package and set the variables. You must do it before module.export.

提交回复
热议问题