From f7b830a9d52878b274b79e4e4dec0dc5a0eab4df Mon Sep 17 00:00:00 2001 From: Gustavo Bueno Date: Mon, 13 Jul 2020 21:31:13 +0200 Subject: [PATCH] try --- webpack.config.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/webpack.config.js b/webpack.config.js index 7b23e22..0155c1d 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -3,6 +3,7 @@ const { CleanWebpackPlugin } = require('clean-webpack-plugin') const HtmlWebpackPlugin = require('html-webpack-plugin') const svgToMiniDataURI = require('mini-svg-data-uri') const Dotenv = require('dotenv-webpack') +const webpack = require('webpack') module.exports = { devtool: 'source-map', @@ -53,6 +54,9 @@ module.exports = { new HtmlWebpackPlugin({ template: './public/index.html' }), - new Dotenv() + new Dotenv(), + new webpack.DefinePlugin({ + 'process.env.GITHUB_TOKEN': JSON.stringify(process.env.GITHUB_TOKEN) + }) ] }