Skip to content

Commit 3963d8c

Browse files
FadySamirSadekmontogeek
authored andcommitted
docs(configuration) Added documentation for [contenthash] #6839 (#2085)
* Added documentation for [contenthash] #6839 * Fix TravisCI build * remove extra space before colon * Fix lint issues * Remove semicolon
1 parent ebe10e9 commit 3963d8c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/content/configuration/output.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ contributors:
1010
- fvgs
1111
- dhurlburtusa
1212
- MagicDuck
13+
- fadysamirsadek
1314
- byzyk
1415
- madhavarshney
1516
---
@@ -264,6 +265,17 @@ module.exports = {
264265
};
265266
```
266267

268+
Using hashes generated for extracted content:
269+
270+
```js
271+
module.exports = {
272+
//...
273+
output: {
274+
filename: '[contenthash].bundle.css'
275+
}
276+
};
277+
```
278+
267279
Make sure to read the [Caching guide](/guides/caching) for details. There are more steps involved than just setting this option.
268280

269281
Note this option is called filename but you are still allowed to use something like `"js/[name]/bundle.js"` to create a folder structure.

0 commit comments

Comments
 (0)