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

Support for hash in output bundle name? #199

Closed
adampfw opened this issue Aug 30, 2024 · 0 comments
Closed

Support for hash in output bundle name? #199

adampfw opened this issue Aug 30, 2024 · 0 comments

Comments

@adampfw
Copy link

adampfw commented Aug 30, 2024

Hi, do I understand correctly that there is no option for adding caching hash to output bundle name?

webpack.config.js:

module.exports = {
  ...
  output: {
    filename: '[name]-[contenthash].js',
  },
  ...
}

This produces for example bundle-3ed35ea62e9cbcfe95b9.js and usage of <%= javascript_include_tag "bundle", "data-turbo-track": "reload", type: "module", defer: true %> results with an error Sprockets::Rails::Helper::AssetNotFound.

Is there any workaround? How can I achieve it?

@adampfw adampfw closed this as completed Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant