Update README.md

This commit is contained in:
Dan Abramov
2016-07-21 20:32:35 +01:00
committed by GitHub
parent cc83bee491
commit 0e9bcac867

View File

@@ -191,7 +191,7 @@ This works in CSS too:
Webpack finds all relative module references in CSS (they start with `./`) and replaces them with the final paths from the compiled bundle.
If you make a typo or accidentally delete an important file, you will see a compilation error, just like when you import a non-existent JavaScript module. The filenames are generated by Webpack from content hashes. If the file content changes in the future, Webpack will give it a different name in production so you dont need to worry about long-term caching of assets.
If you make a typo or accidentally delete an important file, you will see a compilation error, just like when you import a non-existent JavaScript module. The final filenames in the compiled bundle are generated by Webpack from content hashes. If the file content changes in the future, Webpack will give it a different name in production so you dont need to worry about long-term caching of assets.
Please be advised that this is also a custom feature of Webpack.
**It is not required for React** but many people enjoy it (and React Native uses a similar mechanism for images).