If you just want to try with this already configured webpack project just build the source and open the index.html
file with:
yarn
yarn build
open index.html
If you want to replicate this configuration in another project, these are the steps we have followed here:
(>= v1.0.0)
yarn add @carto/carto-vl
(>= v0.50.0)
yarn add mapbox-gl
Note: Check the installed version is the same as the one referenced at index.html
stylesheet link for the .css
const mapboxgl = require('mapbox-gl');
const carto = require('@carto/carto-vl');