chore: Remove env variables in webpack bundle (#1353)

* chore: Remove env variables in webpack bundle

* remove unused globals

* refactor: consolidate window.env calls to single file

* fix: Slack client side integration auth

* fix: developers url
This commit is contained in:
Tom Moor
2020-07-18 11:02:40 -07:00
committed by GitHub
parent 24448c7504
commit 67981a351e
32 changed files with 186 additions and 206 deletions

View File

@@ -1,24 +1,23 @@
/* eslint-disable */
const webpack = require('webpack');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const commonWebpackConfig = require('./webpack.config');
const webpack = require("webpack");
const commonWebpackConfig = require("./webpack.config");
const developmentWebpackConfig = Object.assign(commonWebpackConfig, {
cache: true,
devtool: 'eval-source-map',
devtool: "eval-source-map",
entry: [
'babel-polyfill',
'babel-regenerator-runtime',
'webpack-hot-middleware/client',
'./app/index',
"babel-polyfill",
"babel-regenerator-runtime",
"webpack-hot-middleware/client",
"./app/index",
],
});
developmentWebpackConfig.plugins = [
...developmentWebpackConfig.plugins,
new webpack.HotModuleReplacementPlugin(),
new HtmlWebpackPlugin({
title: 'Outline',
new webpack.DefinePlugin({
"process.env.NODE_ENV": JSON.stringify("development"),
}),
];