Skip to content

Commit

Permalink
fix: prod builds (#2351)
Browse files Browse the repository at this point in the history
  • Loading branch information
goldpbear authored Dec 30, 2023
1 parent e6915be commit 1953ab3
Show file tree
Hide file tree
Showing 3 changed files with 117 additions and 33 deletions.
143 changes: 115 additions & 28 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"test:watch": "jest --watch --verbose --config ./jest.watch.config.js",
"test:debug": "node --inspect-brk ./node_modules/jest/bin/jest.js --runInBand",
"build-js": "webpack -d",
"build-js-production": "NODE_ENV=production webpack -p --progress",
"build-js-production": "NODE_ENV=production webpack --mode=production --progress",
"watch-js": "webpack -d --watch",
"build": "rm -rf www/* && NODE_ENV=production node scripts/static-build.js && npm run build-js-production",
"prettier": "prettier --list-different \"{src,scripts}/**/*.{js,jsx,ts,tsx,json}\"",
Expand Down Expand Up @@ -142,7 +142,7 @@
"eslint-plugin-react": "~7.23.2",
"eslint-plugin-react-hooks": "^2.3.0",
"file-loader": "^4.2.0",
"fork-ts-checker-webpack-plugin": "^4.1.3",
"fork-ts-checker-webpack-plugin": "^8.0.0",
"fs-extra": "^9.0.1",
"jest": "^29.7.0",
"jest-runner-prettier": "^0.3.6",
Expand Down
3 changes: 0 additions & 3 deletions src/base/static/components/molecules/map-controls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,17 +75,14 @@ const MapControls: React.FunctionComponent<MapControlProps> = props => {
showCompass={true}
showZoom={true}
onViewportChange={setViewport}
position="top-left"
style={{ position: "relative" }}
/>
<GeolocateControl
trackUserLocation={true}
positionOptions={{ enableHighAccuracy: true, timeout: 6000 }}
position="top-left"
style={{ position: "relative", marginTop: "8px" }}
/>
<FullscreenControl
position="top-left"
style={{ position: "relative", marginTop: "8px" }}
/>
<div className="mapboxgl-ctrl-group" style={{ marginTop: "8px" }}>
Expand Down

0 comments on commit 1953ab3

Please sign in to comment.