mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-02-22 09:41:26 -08:00
17 lines
527 B
JavaScript
17 lines
527 B
JavaScript
path = require('path');
|
|
|
|
// This is require to use react-map-gl 6.x with maplibre
|
|
// See: https://github.com/visgl/react-map-gl/blob/v6.1.21/docs/get-started/get-started.md#using-with-a-mapbox-gl-fork
|
|
//
|
|
// In react-map-gl 7.x this is no longer needed: https://visgl.github.io/react-map-gl/docs/get-started
|
|
//
|
|
exports.onCreateWebpackConfig = ({stage, loaders, actions}) => {
|
|
actions.setWebpackConfig({
|
|
devtool: 'eval-source-map',
|
|
resolve: {
|
|
alias: {
|
|
'mapbox-gl': 'maplibre-gl',
|
|
},
|
|
},
|
|
});
|
|
};
|