Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.
Updated webpack website configuration to read env variable (#5)
Giuseppe Macrì683445709859
diff --git a/src/components/modal-container.js b/src/components/modal-container.jsindex bbb3a4314..90fc60028 100644--- a/src/components/modal-container.js+++ b/src/components/modal-container.js@@ -27,7 +27,7 @@ import document from 'global/document';import ModalDialog from './common/modal';import {formatCsv} from 'processors/data-processor';-import KeplerGlSchema from '@uber/kepler.gl/schemas';+import KeplerGlSchema from 'schemas';// modalsimport DeleteDatasetModalFactory from './modals/delete-data-modal';diff --git a/website/src/beta/tokens.js b/website/src/beta/tokens.jsindex 460c2e31c..a1b38f41b 100644--- a/website/src/beta/tokens.js+++ b/website/src/beta/tokens.js@@ -1,3 +1,23 @@+// Copyright (c) 2018 Uber Technologies, Inc.+//+// Permission is hereby granted, free of charge, to any person obtaining a copy+// of this software and associated documentation files (the "Software"), to deal+// in the Software without restriction, including without limitation the rights+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell+// copies of the Software, and to permit persons to whom the Software is+// furnished to do so, subject to the following conditions:+//+// The above copyright notice and this permission notice shall be included in+// all copies or substantial portions of the Software.+//+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN+// THE SOFTWARE.+export const tokens = ['028bea5792f7facb0bf85ba908dfe98b','03cf23c3f43882b1c436380d07a97ac5',diff --git a/website/webpack.config.js b/website/webpack.config.jsindex a4e9a6bec..6f0bcabdb 100644--- a/website/webpack.config.js+++ b/website/webpack.config.js@@ -82,10 +82,9 @@ const COMMON_CONFIG = {fs: 'empty'},+ // Optional: Enables reading mapbox token from environment variableplugins: [- new webpack.DefinePlugin({- MapboxAccessToken: `"${process.env.MapboxAccessToken}"` // eslint-disable-line- })+ new webpack.EnvironmentPlugin(['MapboxAccessToken'])]};