如何省略.jsx文件名 在webpack.config.js文件夹中module.exports中添加: resolve:{ extensions:[".js", ".jsx", ".json"] //表示文件的后缀名,可以省略不写。 }