Parcel plugin to watch and copy resources to the Parcel bundle directory. This plugin is actually just a thin wrapper for the cpx module.
By default, this plugin recursively copies all files from
<rootDir> is the directory which contains your entry asset. If your entry asset is
my/project/index.js, then the
If parcel is started as a local development server, then all resources will be watched and automatically re-copied when changed, added, or removed.
Install the plugin:
yarn add --dev parcel-plugin-resources
npm install --dev parcel-plugin-resources
Parcel will automatically detect the plugin.
If you need to change the resource glob pattern or destination directory, you can add the following to your
Default values are shown above.