2.webpack配置文件

默认配置文件webpack.config.js


const path=reuqire('path');

module.exports={

entry:'./index.js',//入口文件

output:{

   filename:'bundle.js',//出口打包文件名

  path:path.resolve(__dirname,'dist')//打包到的目录

  }

}

你可能感兴趣的:(2.webpack配置文件)