Quick demo of using only parts of chroma.js
| { | |
| "name": "test", | |
| "version": "1.0.0", | |
| "main": "index.js", | |
| "scripts": { | |
| "build": "rollup -c" | |
| }, | |
| "dependencies": { | |
| "chroma-js": "^2.0.0" | |
| }, | |
| "devDependencies": { | |
| "rollup": "^0.67.4" | |
| } | |
| } |
| import resolve from 'rollup-plugin-node-resolve'; | |
| import commonjs from 'rollup-plugin-commonjs'; | |
| module.exports = { | |
| input: 'index.js', | |
| output: { | |
| file: `test.js`, | |
| format: 'cjs', | |
| }, | |
| plugins: [ | |
| resolve(), | |
| commonjs(), | |
| ] | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment