docs: function makeLocalDevConfig(EXAMPLE_DIR = LIB_DIR) {
    return {
      // suppress warnings about bundle size
      devServer: {
        stats: {
          warnings: false
        }
      },
  
      devtool: 'source-map',
  
      resolve: {
        alias: {
          // Imports kepler.gl library from the src directory in this repo
          'kepler.gl': SRC_DIR,
          react: resolve(EXAMPLE_DIR, './node_modules/react'),
          'styled-components': resolve(EXAMPLE_DIR, './node_modules/styled-components')
        }
      },
      module: {
        rules: [
          {
            // Unfortunately, webpack doesn't import library source maps on its own...
            test: /\.js$/,
            use: ['source-map-loader'],
            enforce: 'pre',
            exclude: [
              /node_modules\/react-palm/,
              /node_modules\/react-data-grid/
            ]
          }
        ]
      },
      // Optional: Enables reading mapbox token from environment variable
      plugins: [
        new webpack.EnvironmentPlugin([
          'MapboxAccessToken',
          'DropboxClientId',
          'MapboxExportToken'
        ])
      ]
    };
  }