entry: { postdetail: './src/app.js', productdetail: './src/app.js', order: './src/js/order.js' }, output: { path: path.join(__dirname, './build/'), filename: 'js/[name].bundle.js' } 多个入口文件,统一出口文件
https://github.com/callmedada... It has multi-page packaging support, you can refer to the following ideas
The general idea is to configure the mapping of entry and html, and then traverse and use html-webpack-plugin to generate it
https://github.com/callmedada... It has multi-page packaging support, you can refer to the following ideas
The general idea is to configure the mapping of entry and html, and then traverse and use html-webpack-plugin to generate it