Skip to content

Commit

Permalink
Fix warnings via package updates, ignores. Update default url config …
Browse files Browse the repository at this point in the history
…to match local settings.
  • Loading branch information
Nospamas committed Aug 28, 2024
1 parent 4c70fe7 commit 5f09f88
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 42 deletions.
15 changes: 15 additions & 0 deletions craco.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,25 @@ const { CracoAliasPlugin } = require("react-app-alias");
const options = {}; // default is empty for most cases

module.exports = {
eslint: null,
plugins: [
{
plugin: CracoAliasPlugin,
options: {},
},
],
webpack: {
configure: {
ignoreWarnings: [
function ignoreSourcemapsloaderWarnings(warning) {
return (
warning.module &&
warning.module.resource.includes("node_modules") &&
warning.details &&
warning.details.includes("source-map-loader")
);
},
],
},
},
};
83 changes: 43 additions & 40 deletions package-lock.json

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

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"lodash": "^4.17.21",
"memoize-one": "^6.0.0",
"pcic-react-leaflet-components": "git+https://[email protected]/pacificclimate/pcic-react-leaflet-components.git#tile-url-as-prop",
"plotly.js-basic-dist": "^2.29.0",
"plotly.js-basic-dist": "^2.34.0",
"prop-types": "^15.8.1",
"react": "^18.2.0",
"react-bootstrap": "^2.4.0",
Expand All @@ -41,6 +41,9 @@
"use-immer": "^0.7.0",
"zustand": "^4.4.7"
},
"overrides": {
"autoprefixer": "10.4.5"
},
"devDependencies": {
"@tanstack/react-query-devtools": "^5.20.2",
"craco": "^0.0.3",
Expand Down
2 changes: 1 addition & 1 deletion public/env.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
window.env = {
PUBLIC_URL: "http://localhost:30502",
PUBLIC_URL: "http://localhost:3000",
REACT_APP_BC_BASE_MAP_TILES_URL:
"https://swarm.pacificclimate.org/tiles/bc-albers-lite/{z}/{x}/{y}.png",
REACT_APP_YNWT_BASE_MAP_TILES_URL:
Expand Down

0 comments on commit 5f09f88

Please sign in to comment.