swarm-api/webpack.config.js

25 lines
514 B
JavaScript
Raw Normal View History

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