All threads / Rails Webpack caching
Ask A Question


You’re not receiving notifications from this thread.

Rails Webpack caching

Stephen Sizer asked in Javascript

I'm having an issue in development where I've changed my main application.js file in /javascript/packs/ and the file is being cached so having a hard time testing new changes. Does anyone else have this issue?


How are you loading the application.js file into your app? What command do you use to run your Rails (and webpack?) server locally?

Found the issue! It was due to my environment file in webpacker causing the assets to not be recompiled.

Join the discussion

Want to stay up-to-date with Ruby on Rails?

Join 54,919+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    logo Created with Sketch.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2021 GoRails, LLC. All rights reserved.