单一入口文件
entry: './index.js'
双(多)入口文件,注意顺序
entry: ['./index1.js', './index2.js', 'lodash']
多入口文件,多打包出口文件
entry: {
main1: ['./index1.js','./index2.js'],
main2: ['./index3.js', 'lodash']
}
公共文件单独打包
entry: {
main1: {
import: ['./index1.js','./index2.js'],
dependOn: 'all'
}
all: 'lodash'
}