关于webpack_config配置文件说明

path: node内置的模块用来去设置路径的

const path = require('path');
module.exports = {
	entry:'./src/index.js',
	output:{
		filename:'bundle.js',
		path:path.resolve(__dirname,'dist') 
	}
};
  • entry:当前项目的主文件,又称入口文件
  • output:出口/输出的配置
  • filename:输出的文件名
  • path:设置它的路径

猜你喜欢

转载自blog.csdn.net/weixin_42224055/article/details/106695406