Skip to content
This repository has been archived by the owner on May 28, 2018. It is now read-only.

Donov4n/rollup-config-builder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rollup-config-builder

Installation

yarn add --dev rollup rollup-config-builder

Usage

Your project need to have Babel configured.

Then, in your rollup.config.js:

import buildConfig from 'rollup-config-builder';
import del         from 'del';

del.sync(['./dist']);
export default buildConfig({
    entry  : `./src/my-module.js`,
    output : {
        file : `./dist/my-module.js`,
        name : 'MyModule'
    }
});

Will produce:

/dist
├── my-module.es.js  <--- ES6 module file. (for the `module` field in `package.json`) 
├── my-module.js     <--- UMD (for the `main` field in `package.json`)
└── my-module.min.js <--- UMD, minified.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published