Skip to content
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
Closed
@mikehardenize

Description

@mikehardenize

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions