summaryrefslogtreecommitdiff
path: root/node_modules/snekfetch/webpack.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/snekfetch/webpack.config.js')
-rw-r--r--node_modules/snekfetch/webpack.config.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/node_modules/snekfetch/webpack.config.js b/node_modules/snekfetch/webpack.config.js
new file mode 100644
index 0000000..a72be5a
--- /dev/null
+++ b/node_modules/snekfetch/webpack.config.js
@@ -0,0 +1,18 @@
+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'),
+ },
+ },
+};