Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
197 additions
and
153 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>deck.gl Example</title> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<style> | ||
body {margin: 0; font-family: sans-serif; width: 100vw; height: 100vh; overflow: hidden;} | ||
</style> | ||
</head> | ||
<body> | ||
<div id="app"></div> | ||
</body> | ||
<script type="text/javascript" src="app.js"></script> | ||
<script type="text/javascript"> | ||
App.renderToDOM(document.getElementById('app')); | ||
</script> | ||
</html> |
File renamed without changes.
27 changes: 11 additions & 16 deletions
27
...s/website/heatmap-layer/webpack.config.js → examples/website/heatmap/webpack.config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,37 @@ | ||
// NOTE: To use this example standalone (e.g. outside of deck.gl repo) | ||
// delete the local development overrides at the bottom of this file | ||
|
||
// avoid destructuring for older Node version support | ||
const resolve = require('path').resolve; | ||
const webpack = require('webpack'); | ||
|
||
const CONFIG = { | ||
mode: 'development', | ||
|
||
entry: { | ||
app: resolve('./app.js') | ||
app: './app.js' | ||
}, | ||
|
||
devtool: 'source-map', | ||
output: { | ||
library: 'App' | ||
}, | ||
|
||
module: { | ||
rules: [ | ||
{ | ||
// Compile ES2015 using buble | ||
// Transpile ES6 to ES5 with babel | ||
// Remove if your app does not use JSX or you don't need to support old browsers | ||
test: /\.js$/, | ||
loader: 'buble-loader', | ||
include: [resolve('.')], | ||
loader: 'babel-loader', | ||
exclude: [/node_modules/], | ||
options: { | ||
objectAssign: 'Object.assign' | ||
presets: ['@babel/preset-react'] | ||
} | ||
} | ||
] | ||
}, | ||
|
||
resolve: { | ||
alias: { | ||
// From mapbox-gl-js README. Required for non-browserify bundlers (e.g. webpack): | ||
'mapbox-gl$': resolve('./node_modules/mapbox-gl/dist/mapbox-gl.js') | ||
} | ||
}, | ||
|
||
// Optional: Enables reading mapbox token from environment variable | ||
plugins: [new webpack.EnvironmentPlugin(['MapboxAccessToken'])] | ||
}; | ||
|
||
// This line enables bundling against src in this repo rather than installed deck.gl module | ||
// This line enables bundling against src in this repo rather than installed module | ||
module.exports = env => (env ? require('../../webpack.config.local')(CONFIG)(env) : CONFIG); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.