webapck之entry配置
const HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = {
mode:'development',
plugin: [
new HtmlWebpackPlugin()
],
entry: {
main: {
import: ['./src/app.js', './src/app.js'],
dependOn: 'lodash'
},
main2: {
import: './src/app3.js',
dependOn: 'lodash'
},
lodash: 'loadsh'
}
}