diff --git a/src/content/configuration/output.md b/src/content/configuration/output.md index 0c6c216813d1..71834e2f5b04 100644 --- a/src/content/configuration/output.md +++ b/src/content/configuration/output.md @@ -10,6 +10,7 @@ contributors: - fvgs - dhurlburtusa - MagicDuck + - fadysamirsadek - byzyk - madhavarshney --- @@ -264,6 +265,17 @@ module.exports = { }; ``` +Using hashes generated for extracted content: + +```js +module.exports = { + //... + output: { + filename: '[contenthash].bundle.css' + } +}; +``` + Make sure to read the [Caching guide](/guides/caching) for details. There are more steps involved than just setting this option. Note this option is called filename but you are still allowed to use something like `"js/[name]/bundle.js"` to create a folder structure.