mirror of
https://github.com/visgl/react-map-gl.git
synced 2026-01-25 16:02:50 +00:00
27 lines
612 B
JavaScript
27 lines
612 B
JavaScript
const webpack = require('webpack');
|
|
const {resolve} = require('path');
|
|
const config = require('./config');
|
|
|
|
module.exports = Object.assign(config, {
|
|
|
|
mode: 'production',
|
|
|
|
output: {
|
|
path: resolve(__dirname, '../dist'),
|
|
filename: 'main.js'
|
|
},
|
|
|
|
resolve: {
|
|
modules: config.resolve.modules,
|
|
alias: Object.assign({}, config.resolve.alias, {
|
|
'../utils/mapboxgl': resolve('../node_modules/mapbox-gl'),
|
|
})
|
|
},
|
|
|
|
plugins: config.plugins.concat([
|
|
new webpack.DefinePlugin({
|
|
DOCS_DIR: JSON.stringify('https://raw.githubusercontent.com/uber/react-map-gl/master')
|
|
})
|
|
])
|
|
});
|