This repository has been archived by the owner on Apr 21, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
826276e
commit 3802cd4
Showing
10 changed files
with
1,243 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# @pika/plugin-copy-assets | ||
|
||
> A [@pika/pack](https://github.com/pikapkg/pack) build plugin. | ||
> Copies static assets from your root source directory into the built `pkg/` directory. Useful for non-JS associated files (like CSS, images). | ||
|
||
## Install | ||
|
||
```sh | ||
# npm: | ||
npm install @pika/plugin-copy-assets --save-dev | ||
# yarn: | ||
yarn add @pika/plugin-copy-assets --dev | ||
``` | ||
|
||
|
||
## Usage | ||
|
||
```json | ||
{ | ||
"name": "example-package-json", | ||
"version": "1.0.0", | ||
"@pika/pack": { | ||
"pipeline": [ | ||
["@pika/plugin-standard-pkg"], | ||
["@pika/plugin-build-node", {}] | ||
["@pika/plugin-copy-assets", {}] | ||
] | ||
} | ||
} | ||
``` | ||
|
||
For more information about @pika/pack & help getting started, [check out the main project repo](https://github.com/pikapkg/pack). | ||
|
||
|
||
## Options | ||
|
||
- `"files"` (Default: `["assets/"]`): An array of files/folders to copy into the pkg out directory. Does not support glob pattern matching, but will copy any directories recursively. | ||
|
||
|
||
## Result | ||
|
||
1. See the package description. Copies static assets from your root source directory into the built `pkg/` directory (example: "assets/" => "pkg/assets"). |
Oops, something went wrong.