Skip to content

Commit

Permalink
build: move esri assets into assetsDir
Browse files Browse the repository at this point in the history
  • Loading branch information
steveoh committed Oct 23, 2024
1 parent 4264b76 commit a970bbc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ dist
.pnp.*

# deploy
/public/assets
/public/wri/
/build
/deploy
/dist
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"type": "module",
"scripts": {
"build": "tsc -b && vite build",
"copy:arcgis": "cpy \"./node_modules/@arcgis/core/assets/**\" ./public/assets",
"copy:arcgis": "cpy \"./node_modules/@arcgis/core/assets/**\" ./public/wri/js/ugrc/assets",
"dev": "npm start",
"format": "prettier . --write",
"lint": "eslint . --report-unused-disable-directives --max-warnings 0",
Expand Down
2 changes: 1 addition & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ ErrorFallback.propTypes = {
error: PropTypes.object,
};

esriConfig.assetsPath = './assets';
esriConfig.assetsPath = './wri/js/ugrc/assets';

export default function App() {
const { placeGraphic, mapView } = useMap();
Expand Down

0 comments on commit a970bbc

Please sign in to comment.