Giter VIP home page Giter VIP logo

gatsby-plugin-copy-files's Introduction

Specify absolute source path and relative destination path using plugin options.

{
	resolve: 'gatsby-plugin-copy-files',
	options: {
		source: `${__dirname}/src/public`,
		destination: ''
	}
},
{
	resolve: 'gatsby-plugin-copy-files',
	options: {
		source: `${__dirname}/src/images`,
		destination: '/images'
	}
}

Must be used with gatsby-source-filesystem.

gatsby-plugin-copy-files's People

Contributors

jacobmischka avatar sempostma avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

gatsby-plugin-copy-files's Issues

Is it possible that this plugin won't work with gatsby v2.x

i'm using gatsby v2.x but the copy-files plugin won't work for me

"gatsby-plugin-copy-files": "^1.0.2",
"gatsby-plugin-manifest": "^2.0.24",
"gatsby-plugin-offline": "^2.0.25",
"gatsby-plugin-react-helmet": "^3.0.10",
"gatsby-plugin-sass": "^2.0.11",
"gatsby-source-filesystem": "^2.0.33",
"gatsby-transformer-yaml": "^2.1.12",

gatsby-config.js

{
  resolve: 'gatsby-plugin-copy-files',
  options: {
    source: `${__dirname}/src/dynamic/send.php`,
    destination: '/dynamic'
  }
},

Is it maybe not made for v2?

Add support for Gatsby v4

Currently, this plugin only supports gatsby v2.x and v3.x; I propose that we update the depenencies to permit operation with Gatsby v4.x.

Feature request: purge before copy

Does it make sense to add a feature to purge the destination folder prior to copying files... I think having that as a configurable option would make this plugin more useful (its already useful ;-)) I mean more useful. Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.