一覧へ戻る
sakitam-fdd/rollup-plugin-copied(新しいタブで開きます)
主要言語: JavaScript
copy plugin for rollup
- star 数
- 2
- watcher 数
- 2
- fork 数
- 1
- issue 数
- 0
- 最終更新
- 2018/07/23
主要言語: JavaScript
copy plugin for rollup
Copy files && directories with rollup
npm i -D rollup-plugin-copied
rollup.config.js
const copy = require('rollup-plugin-copied'); const plugin = copy({ from: './fixtures/', to: './dist/images', emitFiles: true // defaults to true }, { watch: true }); // or const _plugin = copy([ { from: './fixtures/', to: './dist/images', emitFiles: true // defaults to true } ], { watch: true }); const config = { plugins: [ plugin ] }
| Name | Type | Default | Description |
|---|---|---|---|
'from' |
{String} |
undefined |
If from is directory, to has no extension or ends in '/' |
'to' |
{String} |
undefined |
If to has extension or from is file |
'emitFiles' |
{String} |
undefined |
enable plugin |
Array item just like use Object
| Name | Type | Default | Description |
|---|---|---|---|
'from' |
{String} |
undefined |
If from is directory, to has no extension or ends in '/' |
'to' |
{String} |
undefined |
If to has extension or from is file |
'emitFiles' |
{String} |
undefined |
enable plugin |
| Name | Type | Default | Description |
|---|---|---|---|
'exclude' |
{Array} |
[] |
Array of globs to ignore (applied to from) |
'include' |
{Array} |
[] |
Array of globs to include (applied to from) |
'watch' |
{Boolean} |
true |
When set to false, only the changes of the first resource are monitored, and the monitoring is not repeated. |