2018-09-07 08:17:00 +00:00
|
|
|
const path = require('path');
|
|
|
|
|
|
|
|
const standalone = {
|
2018-09-11 02:20:31 +00:00
|
|
|
entry: path.join(__dirname, 'dist/browser', 'browser.js'),
|
|
|
|
mode: 'production',
|
|
|
|
// optimization: {
|
|
|
|
// minimize: false
|
|
|
|
// },
|
|
|
|
output: {
|
2018-09-12 01:55:22 +00:00
|
|
|
filename: 'swarm-api.min.js',
|
2018-09-11 02:20:31 +00:00
|
|
|
globalObject: 'typeof self !== \'undefined\' ? self : this',
|
2018-09-11 02:38:47 +00:00
|
|
|
library: 'SwarmAPI',
|
2018-09-11 02:20:31 +00:00
|
|
|
libraryTarget: 'umd',
|
|
|
|
libraryExport: 'default',
|
|
|
|
path: __dirname,
|
|
|
|
umdNamedDefine: true
|
|
|
|
},
|
|
|
|
target: 'web',
|
|
|
|
node: {
|
|
|
|
fs: 'empty'
|
|
|
|
}
|
2018-09-07 08:17:00 +00:00
|
|
|
};
|
|
|
|
|
2018-09-11 02:20:31 +00:00
|
|
|
module.exports = [standalone];
|