aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2018-09-30 06:55:23 +0300
committerValentin Popov <info@valentineus.link>2018-09-30 06:55:23 +0300
commit51993d681a1cc142715d2d5cfa5acacf299cd0c9 (patch)
treed26420954fbc97bff554928f125dc32517ec6ba1
parent8028497a1bb00e2491fbb73111b9ee314ab3e6c6 (diff)
downloadjs-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.js40
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
+ })
+ ]
+} ];