Caching Elm Downloads on Netlify Builds (Reprise)


There have recently been changes to the Netlify build system, and Dillon’s recommendation for caching Elm packages no longer works.

They now have a generic caching npm package that you can use. For example, this is how the netlify.toml file looks in my projects:

  publish = "dist"
  command = "export ELM_HOME=\"elm-stuff\" && npm run build"

package = "netlify-plugin-cache"
  paths = ["elm-stuff"]

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.