Skip to content

Commit

Permalink
Added banner to min build
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Apr 5, 2021
1 parent a08aac9 commit 0951ebc
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const globals = {
react: "React"
};
const banner =
`/*
`/*!
* React Chartkick
* ${pkg.description}
* ${pkg.repository.url}
Expand All @@ -22,6 +22,8 @@ const banner =
*/
`;

const minBanner = `/*! React Chartkick v${pkg.version} | ${pkg.license} License */`;

export default [
{
input: input,
Expand All @@ -46,6 +48,7 @@ export default [
name: outputName,
file: pkg.main.replace(/\.js$/, ".min.js"),
format: "umd",
banner: minBanner,
globals: globals,
exports: "named"
},
Expand All @@ -54,7 +57,11 @@ export default [
resolve(),
commonjs(),
buble(),
uglify()
uglify({
output: {
comments: /^!/
}
})
]
},
{
Expand Down

0 comments on commit 0951ebc

Please sign in to comment.