Skip to content

Commit

Permalink
chore: fixed bundle license
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurfiorette committed Sep 30, 2023
1 parent 309bfe1 commit 5adc229
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions build/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,13 @@ const { DefinePlugin } = require('webpack');
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
const { version } = require('../package.json');

const COPYRIGHT = `// Axios Cache Interceptor v${version} MIT License Copyright (c) 2021-present Arthur Fiorette & Contributors\n`;
const COPYRIGHT = `
/*!
* Axios Cache Interceptor v${version}
* (c) 2021-present Arthur Fiorette & Contributors
* Released under the MIT License.
*/
`.trim();

/** @type {(...args: string[]) => string} */
const root = (...p) => path.resolve(__dirname, '..', ...p);
Expand Down Expand Up @@ -102,7 +108,7 @@ const config = ({

// @ts-expect-error - _value is not a public property
// eslint-disable-next-line @typescript-eslint/restrict-plus-operands
assets._value = COPYRIGHT + assets._value;
assets._value = COPYRIGHT + '\n' + assets._value;
}
}

Expand Down

0 comments on commit 5adc229

Please sign in to comment.