Skip to content

Commit

Permalink
other: Update webpack release config
Browse files Browse the repository at this point in the history
  • Loading branch information
Omazepa committed Mar 23, 2022
1 parent ff91333 commit 240038a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dist/mailgun.node.js.LICENSE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

/*! https://mths.be/base64 v1.0.0 by @mathias | MIT license */

/*! mailgun.js v5.0.1 */
/*! mailgun.js v5.0.2 */
4 changes: 1 addition & 3 deletions dist/mailgun.web.js.LICENSE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,4 @@

/*! https://mths.be/base64 v1.0.0 by @mathias | MIT license */

/*! https://mths.be/punycode v1.3.2 by @mathias */

/*! mailgun.js v5.0.1 */
/*! mailgun.js v5.0.2 */
12 changes: 10 additions & 2 deletions webpack/webpack.release.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,22 @@ const productionConfig = merge(baseConfig, {
const nodeConf = merge(productionConfig, {
target: 'node',
output: {
filename: 'mailgun.node.js'
filename: 'mailgun.node.js',
library: {
name: 'mailgun',
type: 'umd',
export: 'default',
}
}
});

const webConf = merge(productionConfig, {
target: 'web',
output: {
filename: 'mailgun.web.js'
filename: 'mailgun.web.js',
library: {
type: 'amd'
}
}
});
module.exports = [nodeConf, webConf];

0 comments on commit 240038a

Please sign in to comment.