WebpackにおけるCSSバンドルのハッシュ
コマンド [contenthash] を使用して、
CSSバンドルファイルの名前にハッシュを設定できます:
plugins: [new MiniCssExtractPlugin({
filename: 'build.[contenthash].css'
})],
すべてのCSSを bundle.css という名前とハッシュを持つファイルにバンドルしてください。
コマンド [contenthash] を使用して、
CSSバンドルファイルの名前にハッシュを設定できます:
plugins: [new MiniCssExtractPlugin({
filename: 'build.[contenthash].css'
})],
すべてのCSSを bundle.css という名前とハッシュを持つファイルにバンドルしてください。