Skip to main content

Rails Webpack caching

Javascript • Asked by Stephen Sizer

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


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.


Login or Create An Account to join the conversation.

Subscribe to the newsletter

Join 24,647+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.