Skip to content

Commit

Permalink
Merge 3e9554e into f135a65
Browse files Browse the repository at this point in the history
  • Loading branch information
Xintong Xia committed Apr 10, 2019
2 parents f135a65 + 3e9554e commit 6eee7c8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/gallery/README.md
Expand Up @@ -34,7 +34,7 @@ To test all examples with the local version, run:

```bash
# rebuild bundle
cd ../../modules/lite && npm run build && cd -
cd ../../modules/main && npm run prepublishOnly && cd -
# start server
npm run start-local
```
Expand Down
2 changes: 1 addition & 1 deletion examples/gallery/build-tools/constants.js
Expand Up @@ -12,7 +12,7 @@ if (!MAPBOX_TOKEN) {
}
/* eslint-enable */

const LOCAL_BUNDLE = path.resolve(__dirname, '../../../node_modules/deck.gl/dist.js');
const LOCAL_BUNDLE = path.resolve(__dirname, '../../../modules/main/dist.js');

module.exports = {
INPUT_DIR,
Expand Down
2 changes: 1 addition & 1 deletion examples/gallery/build-tools/serve.js
Expand Up @@ -34,7 +34,7 @@ app.get('/deckgl.min.js', (req, resp) => {

app.get('/*', (req, resp) => {
const name = path.basename(req.path, '.html');
const page = utils.getPage(pagesByName[name], {noCache: true});
const page = pagesByName[name] && utils.getPage(pagesByName[name], {noCache: true});

if (page) {
resp.send(page);
Expand Down
2 changes: 1 addition & 1 deletion examples/gallery/src/boiler-plate.html
Expand Up @@ -39,4 +39,4 @@
});

</script>
</html>
</html>

0 comments on commit 6eee7c8

Please sign in to comment.