Skip to content

Commit

Permalink
Adds open source attribution comment
Browse files Browse the repository at this point in the history
  • Loading branch information
chrissrogers committed Jul 16, 2020
1 parent 057bf26 commit a8952f6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
5 changes: 5 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/**
* License information available at https://docs.recurly.com/page/open-source-attribution
* @attribution
*/

import recurlyCSS from './lib/recurly.css';
import { Recurly } from './lib/recurly';

Expand Down
9 changes: 7 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ const path = require('path');
const minify = ~process.argv.indexOf('-p');
const manifest = require('./package.json');

const ATTRIBUTION_URL = 'https://docs.recurly.com/page/open-source-attribution';

module.exports = {
node: {
global: false,
Expand Down Expand Up @@ -68,10 +70,13 @@ module.exports = {
new TerserPlugin({
terserOptions: {
output: {
comments: false,
comments: false
},
},
extractComments: false
extractComments: {
condition: /@attribution/i,
banner: () => `License information available at ${ATTRIBUTION_URL}`
}
}),
new OptimizeCSSAssetsPlugin({})
]
Expand Down

0 comments on commit a8952f6

Please sign in to comment.