Consumption
为了让你的library能够在各种用户环境(consumption)中可用,需要在output中添加library属性: webpack.config.js varpath=require('path'