1
0
Fork 0

wrench: Updated rollup config

This commit is contained in:
Joost De Cock 2019-04-13 15:41:36 +02:00
parent db90f5709a
commit b28f9a60f1
4 changed files with 318 additions and 38 deletions

View file

@ -0,0 +1,26 @@
import babel from "rollup-plugin-babel";
import resolve from "rollup-plugin-node-resolve";
import json from "rollup-plugin-json";
import minify from "rollup-plugin-babel-minify";
import path from "path";
import { name, version, description, author, license } from "./package.json";
export default {
input: "src/index.js",
output: {
sourcemap: true
},
plugins: [
resolve({ browser: true }),
json(),
babel({
exclude: "node_modules/**",
plugins: ["@babel/plugin-proposal-object-rest-spread"]
}),
minify({
comments: false,
sourceMap: true,
banner: `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
})
]
};