This repository was archived by the owner on Sep 9, 2021. It is now read-only.
This repository was archived by the owner on Sep 9, 2021. It is now read-only.
"[hash]" in publicPath #126
Closed
Description
Hi. This is a feature request. I'd like to be able to use [hash]
in publicPath, so I can do:
{
test: /\.worker\.js$/,
loader: 'worker-loader',
options: {
name: 'js/webpack-worker.js',
publicPath: '/cache-[hash]/',
},
}
I know I can use it in "name", but then the filename changes every time I modify the file, and I don't want to commit a brand new file to git on each change.
I want to use it in publicPath for caching reasons. We map HTTP requests for /cache-ANYTHING/js/
to /js/
so we can set long cache headers.
Metadata
Metadata
Assignees
Labels
No labels