Closed joey-lucky closed 5 years ago
{ test: /\.(jpe?g|png|gif|svg)$/, loader: "file-loader", options: { outputPath: function () { console.log(Array.prototype.splice.call(arguments)); return "" }, publicPath: function () { console.log(Array.prototype.splice.call(arguments)); return publicPath }, name: function (chunkData) { console.log(Array.prototype.splice.call(arguments)); return "image/[hash].[ext]"; } }, }
all this function has no arguments
No way, it is module build step, webpack doesn't know chunk in this state
Code
all this function has no arguments