NEW RELEASE:

Centralized data layer for multiple content sources or frameworks. Dive deep into Valhalla

ContactSign Up for Free
Community Plugin
View plugin on GitHub

gatsby4-cdn-plugin

A Gatsby4 plugin which parsing assets of public,which is js | css | json, upload them to cdn and replace the source of html | app.js | webpackRuntime.js

Options

uploader

  • Type: function(filePath):<Promise>
  • Default:
    (filePath) => {
      return Promise.resolve("");
    };
    your cdn upload function with filePath. the funtion return a Promise with final url resolved
© 2022 Gatsby, Inc.