const path = require('path')
module.export = {
entry: {
index: './src/index.js',
search: './src/search.js'
},
output: {
filename: '[name].js',
path: __dirname + '/dist'
},
mode: 'production'
}寫了多個入口檔案 為什么webpack --mode=production之后只輸出一個main.js
轉載請註明出處,本文鏈接:https://www.uj5u.com/qianduan/64154.html
標籤:JavaScript
