标签: webpack web-config webpack-dev-server
我想将参数传递给我的web-pack配置。但是当我尝试它时返回undefined
webpack.config :
module.exports = function(arg) { console.log('The argument: ', arg); }
命令运行:
npm start --arg=test
返回:
The argument: undefined