- webpack默认可以打包 js/json 文件
const path = require("path");
module.exports = {
//入口
entry:"./src/js/index.js",
//出口
output:{
path:path.resolve(__dirname,"build"),
filename:"./js/build.js"
},
//打包模式
//development,production,none
mode:'development'
}