mattermost-desktop/webpack.config.main.js
Guillermo Vayá 36c6106cad
[MM-22648] basic auth external sites (#1295)
* fix not using babel

* wip

* added tests, moved to map, polifill-like to convert between object and map

* basic structure setup

* working, found new bug

* change buttons

* fix login issue

* remove logging code

* address CR comments

* remove custom function in favor of airbnb shim

* fix linting

* fix PM requested changes

* [MM-25323] fix basic auth cancelling

* fix crash when multiple request were made

* address UX comments, added external link for user
convenience
2020-05-28 10:53:57 +02:00

40 lines
839 B
JavaScript

// Copyright (c) 2015-2016 Yuya Ochiai
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
// This files uses CommonJS.
/* eslint-disable import/no-commonjs */
'use strict';
const path = require('path');
const merge = require('webpack-merge');
const base = require('./webpack.config.base');
module.exports = merge(base, {
entry: './src/main.js',
output: {
path: path.join(__dirname, 'src'),
filename: '[name]_bundle.js',
},
module: {
rules: [{
test: /\.js?$/,
use: {
loader: 'babel-loader',
options: {
include: ['@babel/plugin-proposal-class-properties']
}
},
}],
},
node: {
__filename: true,
__dirname: true,
},
target: 'electron-main',
});
/* eslint-enable import/no-commonjs */