Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

parcel-plugin-copy-files

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

parcel-plugin-copy-files

parcel plugin to copy a list of files straight into your dist directory

  • 0.0.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

parcel-plugin-copy-files

Copies a list of files straight into your dist directory

Usage

package.json

{
  "files-to-copy": [
    {
      "source": "./assets/img.png",
      "target": "./assets/my-img.png"
    },
    "./node_modules/special-package/dist/worker.js"
  ]
}

Files will be placed in the dist folder at the top level, unless the object syntax is used, with a target that contains a name indicating a nested structure.

In the example above, the dist folder will end up with a worker.js file and an /assets/my-img.png file. The target string will be used to resolve the file from the dist directory, so you probably don't want to begin with a /. Either ./name or name is likely what you're going for if you want the file to be created at dist/name.

Keywords

FAQs

Package last updated on 12 Mar 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc