Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added documentation for [contenthash] #6839 #2085

Merged
merged 8 commits into from
Aug 3, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/content/configuration/output.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ contributors:
- fvgs
- dhurlburtusa
- MagicDuck
- fadysamirsadek
- byzyk
- madhavarshney
---
Expand Down Expand Up @@ -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.
Expand Down