RSSAmplifier

Shorts · Mar 27, 2018

Package Your JavaScript Libraries With Rollup

0
Sign in to vote or save

This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.

Rollup is a great tool for building libraries. “Webpack for apps, and Rollup for libraries” Run: yarn add rollup rollup-plugin-buble rollup-plugin-commonjs rollup-plugin-node-resolve rollup-plugin-uglify --dev Add to package.json : { "main": "dist/my-project.js", "module": "dist/my-project.esm.js", "scripts": { "build": "rollup -c" } } Add dist/ to your .gitignore . Create rollup.config.js with:…

Read on ankane.org

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.