一覧へ戻る
zont/rollup-plugin-merge(新しいタブで開きます)
主要言語: JavaScript
- star 数
- 2
- watcher 数
- 1
- fork 数
- 2
- issue 数
- 0
- 最終更新
- 2021/01/19
主要言語: JavaScript
Rollup plugin to merge JSON files
npm i -D rollup-plugin-merge
import merge from 'rollup-plugin-merge'; export default { input: 'src/index.js', output: { file: 'dist/bundle.js', format: 'iife', name: 'app' }, plugins: [ merge({ input: ['src/1.json', 'src/2.json'], output: 'dist/config.json', verbose: true, watch: true, recurisve: true, prettify: true }) ] };
false). Enable/disable recursive mergingfalse). Enable/disable loggingfalse). Enable/disable watching. If disabled then copy only on startfalse). Enable/disable prettify. If enabled then insert white space into the output JSON string for readability purposes