Skip to content

Commit

Permalink
Add license to banner
Browse files Browse the repository at this point in the history
Closes #65
  • Loading branch information
javan committed Oct 22, 2020
1 parent 844e193 commit 0d29887
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
import babel from "@rollup/plugin-babel"
import { terser } from "rollup-plugin-terser"
import { version, author, main } from "./package.json"
import { version, author, license, main } from "./package.json"

const year = new Date().getFullYear()
const banner = `/*\nDetails Element Polyfill ${version}\nCopyright © ${year} ${author}\n */`
const banner = [
`/*!`,
` * Details Element Polyfill ${version}`,
` * Copyright © ${new Date().getFullYear()} ${author}`,
` * Released under the ${license} license`,
` */`
].join("\n")

export default {
input: "src/index.js",
Expand Down

0 comments on commit 0d29887

Please sign in to comment.