Ask A Question

Notifications

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?

Thanks,
Steve

Reply

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

Reply

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

Reply
Join the discussion
Create an account Log in

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

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

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