Skip to content

Commit

Permalink
Fix website build scripts (#981)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pessimistress committed Jan 7, 2020
1 parent 32b0e87 commit 8f53284
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
5 changes: 0 additions & 5 deletions examples/deckgl-overlay/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,7 @@
"start-local": "webpack-dev-server --env.local --progress --hot --open"
},
"dependencies": {
"d3-array": "^1.0.1",
"d3-color": "^1.0.1",
"d3-random": "^1.0.2",
"d3-scale": "^1.0.3",
"deck.gl": "^7.0.0",
"probe.gl": "2.0.0-beta.1",
"react": "^16.3.0",
"react-dom": "^16.3.0",
"react-map-gl": "^5.2.0"
Expand Down
5 changes: 1 addition & 4 deletions website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,14 @@
"scripts": {
"start": "webpack-dev-server --config webpack/dev --open",
"build-clean": "rm -rf ./dist && mkdir dist",
"build-copy": "cp -r ../examples/data dist && cp -r ./src/static/* dist",
"build-copy": "cp -r ./src/static/* dist",
"build-script": "webpack -p --config webpack/prod",
"build": "npm run build-clean && npm run build-script && npm run build-copy",
"lint": "eslint src --ignore-pattern workers"
},
"dependencies": {
"@turf/area": "^6.0.1",
"@turf/bbox": "^6.0.1",
"d3-array": "^1.2.0",
"d3-color": "^1.0.1",
"d3-random": "^1.1.0",
"d3-request": "^1.0.5",
"d3-scale": "^1.0.6",
"gl-matrix": "^3.0.0",
Expand Down
5 changes: 2 additions & 3 deletions website/webpack/prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,9 @@ module.exports = Object.assign(config, {

resolve: {
modules: config.resolve.modules,
alias: {
'react-map-gl': resolve('../src'),
alias: Object.assign({}, config.resolve.alias, {
'../utils/mapboxgl': resolve('../node_modules/mapbox-gl'),
}
})
},

plugins: config.plugins.concat([
Expand Down

0 comments on commit 8f53284

Please sign in to comment.