extract-text-webpack-plugin问题:
new ExtractTextPlugin({
filename: '[name].[hash].css',
allChunks: true
})
webpack官网的解释:
new ExtractTextPlugin(options: filename | object)
Name
Type
Description
id
{String}
此插件实例的唯一标识。 (仅限高级用法,默认情况下会自动生成)
filename
{String|Function}
结果文件的名称。可能包含[name],[id]和[contenthash]
allChunks
{Boolean}
从所有其他块中提取(默认情况下,它仅从最初的块中提取) 当使用CommonsChunkPlugin并且公共块中有ExtractTextPlugin.extract块时,allChunks必须设置为true
disable
{Boolean}
禁用插件
ignoreOrder
{Boolean}
禁用顺序检查(对CSS模块有用!),默认为false