Skip to content

kyuwoo-choi/gatsby-plugin-copy

 
 

Repository files navigation

gatsby-plugin-copy Build Status

Gatsby plugin that copies files and directories.

If the files you need to copy depend on some build time logic like environment variables, this plugin is for you. Otherwise, take advantage of Gatsby's built-in ability to copy everything in the static folder to the public folder.

Install

npm install --save gatsby-plugin-copy

How to use

// In your gatsby-config.js
plugins: [
  {
    resolve: 'gatsby-plugin-copy',
    options: {
        verbose: true // outputs a message for each file copied
      'robots/robots.production': 'robots.txt', // Add one entry per file to copy
    },
  },
]

About

Gatsby plugin to copy files and directories

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 59.5%
  • HTML 40.5%