Skip to content

madsmadsen/parcel-plugin-static-files-copy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

parcel-plugin-static-files-copy

ParcelJS plugin to copy static files from some (currently only from static in project root) dir to directory with bundle.

Install

yarn add parcel-plugin-static-files-copy --dev

Usage

  1. Create static dir in you project root.
  2. Fill it with your static files
  3. Run build - and that's all!

Customization options

The plugin allows you to name the forder whose contents should be present in the build output directory.

Customize the folder from where static resources need to be copied using the staticPath parameter in package.json file. staticPath can both be a plain string, or an array of directories, eg. ["public", "vendor/public"].

// package.json

{
	...
    "staticPath": "public"
}

or

// package.json

{
	...
    "staticPath": ["public", "vendor/public"]
}

Contribute

You're interested in contributing? Awesome! Fork, make change, commit and create pull request. I'll do my best to merge changes!

License

MIT

About

ParcelJS plugin to copy static files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%