Skip to content
This repository has been archived by the owner on Aug 4, 2021. It is now read-only.

Commit

Permalink
updates README example with updated options names
Browse files Browse the repository at this point in the history
  • Loading branch information
Tommy committed Dec 11, 2017
1 parent 585fe3d commit 39c5119
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,19 @@ npm install --save-dev rollup-plugin-json
import json from 'rollup-plugin-json';

export default {
entry: 'src/main.js',
dest: 'dist/bundle.js',
format: 'iife',
input: 'src/main.js',
output: {
file: 'dist/bundle.js'
format: 'iife',
},

plugins: [
json({
// All JSON files will be parsed by default,
// but you can also specifically include/exclude files
include: 'node_modules/**',
exclude: [ 'node_modules/foo/**', 'node_modules/bar/**' ],

// for tree-shaking, properties will be declared as
// variables, using either `var` or `const`
preferConst: true, // Default: false
Expand Down

0 comments on commit 39c5119

Please sign in to comment.