From 51993d681a1cc142715d2d5cfa5acacf299cd0c9 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Sun, 30 Sep 2018 07:55:23 +0400 Subject: Settings of is this collector Signed-off-by: Valentin Popov --- rollup.config.js | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 rollup.config.js diff --git a/rollup.config.js b/rollup.config.js new file mode 100644 index 0000000..5110e62 --- /dev/null +++ b/rollup.config.js @@ -0,0 +1,40 @@ +import babel from "rollup-plugin-babel"; +import { uglify } from "rollup-plugin-uglify"; +import { version } from "./package.json"; + +export default [ { + input: "src/index.js", + output: { + file: `dist/bundle-${version}.js`, + format: "iife", + name: "Github" + }, + plugins: [ + babel({ + babelrc: false, + comments: false, + presets: [ [ "es2015", { modules: false } ] ] + }) + ] +}, +{ + input: "src/index.js", + output: { + file: `dist/bundle-${version}.min.js`, + format: "iife", + name: "Github" + }, + plugins: [ + babel({ + babelrc: false, + comments: false, + presets: [ [ "es2015", { modules: false } ] ] + }), + uglify({ + sourcemap: false, + warnings: true, + toplevel: false, + ie8: true + }) + ] +} ]; -- cgit v1.2.3