When it comes to naming the CSS files generated with MiniCssExtractPlugin, There are two different recommendation of how to name them:
First Example:
plugins: [
new MiniCssExtractPlugin({
filename: '[name].css',
chunkFilename: '[id].css',
}),
],
Second Example:
plugins: [
new MiniCssExtractPlugin({
filename: '[name].[contentHash].css',
}),
],
Which method is the preferred method and why?