aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
+ })
+ ]
+} ];