CARVIEW |
Select Language
HTTP/2 301
date: Sat, 26 Jul 2025 10:01:26 GMT
content-type: text/html
content-length: 162
location: https://webpack.js.org/plugins/hashed-module-ids-plugin/
nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
server: cloudflare
access-control-allow-origin: *
expires: Sat, 26 Jul 2025 10:11:25 GMT
cache-control: max-age=600
x-proxy-cache: MISS
x-github-request-id: 3794:243046:54E1C:66614:6884A775
accept-ranges: bytes
age: 0
via: 1.1 varnish
x-served-by: cache-maa10225-MAA
x-cache: MISS
x-cache-hits: 0
x-timer: S1753524086.794288,VS0,VE230
vary: Accept-Encoding
x-fastly-request-id: 5a42914874ddb5d4b8b427283c5de732b2d61036
cf-cache-status: DYNAMIC
report-to: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=FgqT262NkeOgUpcCzBWbRtiaM4%2FL3aBTo5hA8ii%2FK2mf3r0k2LX1JSeDSyhIb4j47wgrFTwprDlpsM80nmMyvhmN0CwtYJQ6WqoNkEU%3D"}]}
cf-ray: 96530e3ff9068087-BLR
HTTP/1.1 301 Moved Permanently
Date: Sat, 26 Jul 2025 10:01:26 GMT
Transfer-Encoding: chunked
Connection: keep-alive
Location: https://webpack.js.org/plugins/hashed-module-ids-plugin/
Vary: accept-encoding
Report-To: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=rP%2Bnur7dHu8OaKN554Cl6b3K0uxnymbDBRFCFML2L63kw9iS5BisTbEQN9cDEN4jlQTcnlX1O%2FPQANabeyGCBFxh5uOVPvACUUdIV%2BI%3D"}]}
Nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
Server: cloudflare
CF-RAY: 96530e4198fa6f7a-BLR
HTTP/2 200
date: Sat, 26 Jul 2025 10:01:26 GMT
content-type: text/html; charset=utf-8
content-length: 13282
nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
server: cloudflare
last-modified: Sat, 26 Jul 2025 00:10:36 GMT
access-control-allow-origin: *
etag: W/"68841cfc-16f01"
expires: Sat, 26 Jul 2025 10:11:26 GMT
cache-control: max-age=600
content-encoding: gzip
x-proxy-cache: MISS
x-github-request-id: 1338:3EDB09:56CA3:684CD:6884A775
accept-ranges: bytes
age: 0
via: 1.1 varnish
x-served-by: cache-maa10224-MAA
x-cache: MISS
x-cache-hits: 0
x-timer: S1753524086.063747,VS0,VE231
vary: Accept-Encoding
x-fastly-request-id: cbe5a2f358c23724f9cb3d0d5a9555162f926a88
cf-cache-status: DYNAMIC
report-to: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=VW3JIhSbbUEqYwRPYYNWJ82qK2MMJHmxJR%2FRgzAgYJep3p1jDqNlkSusF%2F4h%2B0BNeVit1MNFbaeT5PGOG%2BNAnosHnb8n2W3MZ5t9VWk%3D"}]}
cf-ray: 96530e41ad758087-BLR
HashedModuleIdsPlugin | webpack
Community
webpack
SplitChunksPlugin
- Defaults
- Configuration
- optimization.splitChunks
- splitChunks.automaticNameDelimiter
- splitChunks.chunks
- splitChunks.maxAsyncRequests
- splitChunks.maxInitialRequests
- splitChunks.defaultSizeTypes
- splitChunks.minChunks
- splitChunks.hidePathInfo
- splitChunks.minSize
- splitChunks.minSizeReduction
- splitChunks.enforceSizeThreshold
- splitChunks.minRemainingSize
- splitChunks.layer
- splitChunks.maxSize
- splitChunks.maxAsyncSize
- splitChunks.maxInitialSize
- splitChunks.name
- splitChunks.usedExports
- splitChunks.cacheGroups
- Examples
webpack contrib
MiniCssExtractPlugin
- Getting Started
- Options
- Examples
- Recommended
- Minimal example
- Named export for CSS Modules
- The publicPath option as function
- Advanced configuration example
- Hot Module Reloading (HMR)
- Minimizing For Production
- Using preloaded or inlined CSS
- Extracting all CSS in a single file
- Extracting CSS based on entry
- Filename Option as function
- Long Term Caching
- Remove Order Warnings
- Multiple Themes
- Media Query Plugin
- Hooks
- Contributing
- License
HashedModuleIdsPlugin
This plugin will cause hashes to be based on the relative path of the module, generating a four character string as the module id. Suggested for use in production.
new webpack.ids.HashedModuleIdsPlugin({
// Options...
});
Options
This plugin supports the following options:
context
: The context directory (absolute path) for creating names.hashFunction
: The hashing algorithm to use, defaults to'md4'
. All functions from Node.JS'crypto.createHash
are supported.hashDigest
: The encoding to use when generating the hash, defaults to'base64'
. All encodings from Node.JS'hash.digest
are supported.hashDigestLength
: The prefix length of the hash digest to use, defaults to4
. Note that some generated ids might be longer than specified here, to avoid module id collisions.
Usage
Here's an example of how this plugin might be used:
new webpack.ids.HashedModuleIdsPlugin({
context: __dirname,
hashFunction: 'sha256',
hashDigest: 'hex',
hashDigestLength: 20,
});
« Previous
EvalSourceMapDevToolPlugin