diff --git a/README.md b/README.md index d311bef..15c93ac 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,8 @@ Rollup requires a rollup-compatible Babel config. Simply change the `es2015` pre rollup-babel-lib-bundler ./myFancyLibrary.js ``` +Call `rollup-babel-lib-bundler` without any arguments to see all options. + The command-line app also supports passing in options through the `package.json`. Simply create a property called `rollupBabelLibBundler`. An example configuration would look like this: ```json "rollupBabelLibBundler": { @@ -84,6 +86,11 @@ The path to the library itself. ###### Default `['umd', 'es6', 'cjs']` Can be `umd`, `es6`, `cjs`, `iife` or a combination of these. +##### options.postfix +###### Type: `Object` +###### Default `{ cjs: '', es6: '.es2015', umd: '.umd', iife: '.iife' }` +Allows to define custom postfixes for each module type. `.js` will automatically be prepended. + #### options.babel ###### Type: `String` or `Object` Allow to overwrite the babel configuration. By default its value is `inherit` and it will take the closest `.babelrc` file.