Exciting news!Announcing our $4.6M Series Seed. Learn more
Socket
LoveBlogFAQ
Install
Log in

parcel-reporter-multiple-static-file-copier

Package Overview
Dependencies
2
Maintainers
1
Versions
3
Issues
File Explorer

Advanced tools

parcel-reporter-multiple-static-file-copier

Parcel v2 plugin. Enables the copy of multiple static files and folders into the specified folder on build success.

    1.0.5latest

Version published
Maintainers
1
Yearly downloads
3,907
increased by1883.25%

Weekly downloads

Changelog

Source

Readme

Source

parcel-reporter-multiple-static-file-copier

This is a plugin for Parcel v2 that copies multiple specified files and folders into specified folders once build finishes successfully (Event: buildSuccess).

Inspired by this plugin.

Install

Yarn

$ yarn add -D parcel-reporter-multiple-static-file-copier

NPM

$ npm install parcel-reporter-multiple-static-file-copier --save-dev

Usage

Configuration is set under multipleStaticFileCopier in package.json. It must be an array of objects containing origin and destination props:

PropertyPath
originExample: node_modules/@package/public
destinationExample: dist/public

You ⚠️ must extend Parcel configuration with the plugin name in .parcelrc:

{ "reporters": [ "...", "parcel-reporter-multiple-static-file-copier" ] }

*Note that the "..." notation is used to keep the default report plugins loaded by Parcel.

Example

This example will copy the contents of the folder public into the folder dist/public. (Note that both are in the project root)

package.json

{ "multipleStaticFileCopier": [ { "origin": "public", "destination": "dist/public/" } ] }

Todo

Keywords

Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc