在这个例子中,你可以通过使用imports-loader覆写this: webpack.config.js constpath=require('path');module.exports={entry