Simplify your stack and build anything. Or everything.
Build tomorrow’s web with a modern solution you truly own.
Code-based nature means you can build on top of it to power anything.
It’s time to take back your content infrastructure.

Disable webpack cache?

default discord avatar
oscarlundberg2 years ago
4

I keep getting cached js files despite having set

cache: false

in my webpack config. Restarting my container does not help, and I never get a

node_modules/.cache

directory to delete. Has anyone else had this problem?

  • default discord avatar
    notchr.is2 years ago

    In your payload webpack config?

  • discord user avatar
    denolfe
    2 years ago

    Does this occur outside of a container as well?

  • default discord avatar
    oscarlundberg2 years ago
    @486710146651652106

    yep, i put cache:false in my payload webpack config



    @967118574445547650

    I have not tried, don't have a setup to run it outside of a container



    it was not related to payload, I had a proxy that was caching the js ... 😔

  • discord user avatar
    denolfe
    2 years ago

    Ah, glad you were able to figure it out 👍

Star on GitHub

Star

Chat on Discord

Discord

online

Can't find what you're looking for?

Get dedicated engineering support directly from the Payload team.