通过尝试在webpack中放置带[chunkhash]的文件名,返回错误

时间:2018-01-23 15:03:16

标签: javascript webpack error-handling configuration

使用filename: dev ? '[name].js' : '[name].[chunkhash:8].js',in webpack.config.js(在prod中),我收到了错误

ERROR in chunk manifest [entry]
[name][chunkhash:8].js
Cannot use [chunkhash] for chunk in '[name][chunkhash:8].js' (use [hash] instead)

我应该如何正确使用chunkhash?

https://gist.github.com/blaadje/23340f9bf466e10c8e33e3ef4f207e74 有关cfg的更多信息

0 个答案:

没有答案