Back to results
zont/rollup-plugin-merge(opens in a new tab)
Language: JavaScript
- stars
- 2
- watchers
- 1
- forks
- 2
- open issues
- 0
- Last updated
- 01/19/2021
Language: 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