diff options
author | Valentin Popov <info@valentineus.link> | 2018-09-30 06:55:23 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2018-09-30 06:55:23 +0300 |
commit | 51993d681a1cc142715d2d5cfa5acacf299cd0c9 (patch) | |
tree | d26420954fbc97bff554928f125dc32517ec6ba1 | |
parent | 8028497a1bb00e2491fbb73111b9ee314ab3e6c6 (diff) | |
download | js-github-library-51993d681a1cc142715d2d5cfa5acacf299cd0c9.tar.xz js-github-library-51993d681a1cc142715d2d5cfa5acacf299cd0c9.zip |
Settings of is this collector
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r-- | rollup.config.js | 40 |
1 files changed, 40 insertions, 0 deletions
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 + }) + ] +} ]; |