mirror of
https://github.com/visgl/react-map-gl.git
synced 2026-01-18 15:54:22 +00:00
26 lines
572 B
JavaScript
26 lines
572 B
JavaScript
const webpack = require('webpack');
|
|
const {resolve} = require('path');
|
|
|
|
const config = require('./config');
|
|
|
|
module.exports = Object.assign(config, {
|
|
mode: 'development',
|
|
|
|
entry: ['webpack-hot-middleware/client', './src/main'],
|
|
|
|
devServer: {
|
|
port: 3000,
|
|
progress: true,
|
|
contentBase: [resolve(__dirname, '../src/static'), resolve(__dirname, '../../')]
|
|
},
|
|
|
|
devtool: 'cheap-source-maps',
|
|
|
|
plugins: config.plugins.concat([
|
|
new webpack.HotModuleReplacementPlugin(),
|
|
new webpack.DefinePlugin({
|
|
DOCS_DIR: JSON.stringify('.')
|
|
})
|
|
])
|
|
});
|