我正在學習webpack以及如何使用chunkhash功能。在github上的這個例子中,它在插件中使用了一個'manifest'名字。chunkhash webpack中的清單含義
這是幹什麼用的?我沒有找到任何解釋它的用例。
謝謝。
var path = require("path");
var webpack = require("../../");
module.exports = {
entry: {
main: "./example",
common: ["./vendor"] // optional
},
output: {
path: path.join(__dirname, "js"),
filename: "[name].[chunkhash].js",
chunkFilename: "[chunkhash].js"
},
plugins: [
new webpack.optimize.CommonsChunkPlugin({
names: ["common", "manifest"]
})
/* without the "common" chunk:
new webpack.optimize.CommonsChunkPlugin({
name: "manifest"
})
*/
]
};