Haha-Yes/node_modules/snekfetch/webpack.config.js
2018-09-06 15:02:53 +02:00

18 lines
345 B
JavaScript

const UglifyJSPlugin = require('uglifyjs-webpack-plugin');
module.exports = {
entry: require.resolve('.'),
output: {
filename: 'browser.js',
library: 'Snekfetch',
libraryTarget: 'umd',
},
plugins: [
new UglifyJSPlugin(),
],
resolve: {
alias: {
querystring: require.resolve('./src/qs_mock'),
},
},
};