aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Hassan Abouelela <[email protected]>2020-12-29 16:01:16 +0300
committerGravatar Hassan Abouelela <[email protected]>2020-12-29 16:01:16 +0300
commit6324384bb0d9f20a25f226e549b9a7cd7b572cb5 (patch)
treef2b1e56a0ef6ab4cb0bdc305b55660e806fc1ee8
parentMerge pull request #57 from python-discord/ks123/optional-questions (diff)
Implements `.env` Loading
Signed-off-by: Hassan Abouelela <[email protected]>
-rw-r--r--.gitignore1
-rw-r--r--package.json1
-rw-r--r--webpack.config.js1
-rw-r--r--yarn.lock5
4 files changed, 8 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 4d29575..8692cf6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -13,6 +13,7 @@
# misc
.DS_Store
+.env
.env.local
.env.development.local
.env.test.local
diff --git a/package.json b/package.json
index 18c589e..03fe4ca 100644
--- a/package.json
+++ b/package.json
@@ -26,6 +26,7 @@
"axios": "0.21.1",
"copy-webpack-plugin": "7.0.0",
"cross-env": "7.0.3",
+ "dotenv": "8.2.0",
"eslint": "7.16.0",
"eslint-config-react-app": "6.0.0",
"eslint-loader": "4.0.2",
diff --git a/webpack.config.js b/webpack.config.js
index ac150e1..4694322 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -2,6 +2,7 @@ const path = require("path")
const HtmlWebpackPlugin = require("html-webpack-plugin");
const CopyPlugin = require('copy-webpack-plugin');
const webpack = require("webpack")
+require("dotenv").config();
module.exports = {
entry: "./src/index.tsx",
diff --git a/yarn.lock b/yarn.lock
index dfab353..96fafcf 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -3949,6 +3949,11 @@ dot-case@^3.0.3:
no-case "^3.0.3"
tslib "^1.10.0"
+ version "8.2.0"
+ resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-8.2.0.tgz#97e619259ada750eea3e4ea3e26bceea5424b16a"
+ integrity sha512-8sJ78ElpbDJBHNeBzUbUVLsqKdccaa/BXF1uPTw3GrvQTBgrQrtObr2mUrE38vzYd8cEv+m/JBfDLioYcfXoaw==
+
ecc-jsbn@~0.1.1:
version "0.1.2"
resolved "https://registry.yarnpkg.com/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz#3a83a904e54353287874c564b7549386849a98c9"