1 | const UglifyJSPlugin = require('uglifyjs-webpack-plugin');
|
2 |
|
3 | module.exports = {
|
4 | entry: require.resolve('.'),
|
5 | output: {
|
6 | filename: 'browser.js',
|
7 | library: 'Snekfetch',
|
8 | libraryTarget: 'umd',
|
9 | },
|
10 | plugins: [
|
11 | new UglifyJSPlugin(),
|
12 | ],
|
13 | resolve: {
|
14 | alias: {
|
15 | querystring: require.resolve('./src/qs_mock'),
|
16 | },
|
17 | },
|
18 | };
|