1
0
Fork 0

wrench: Updated rollup config

This commit is contained in:
Joost De Cock 2018-08-09 11:33:03 +02:00
parent 27eb7159db
commit f7a89160ab

View file

@ -2,7 +2,7 @@ import { terser } from "rollup-plugin-terser";
import babel from "rollup-plugin-babel";
import resolve from "rollup-plugin-node-resolve";
import json from "rollup-plugin-json";
import meta from "./package.json";
import { version, name, description, author, license } from "./package.json";
export default {
input: "src/index.js",
@ -13,15 +13,11 @@ export default {
json(),
babel({
exclude: "node_modules/**"
}),
terser({
output: {
preamble: `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
}
})
//terser({
// output: {
// preamble: `/**\n * ${meta.name} | v${meta.version}\n * ${
// meta.description
// }\n * (c) ${new Date().getFullYear()} ${meta.author}\n * @license ${
// meta.license
// }\n */`
// }
//})
]
};