javascript - webpack多页面打包的问题
巴扎黑
巴扎黑 2017-04-17 16:32:03
0
2
399
巴扎黑
巴扎黑

reply all(2)
Ty80
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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template