Files
openlayers/config/webpack-config-legacy-build.js
2020-05-15 21:30:15 +02:00

19 lines
359 B
JavaScript

const path = require('path');
module.exports = {
entry: './build/index.js',
devtool: 'source-map',
mode: 'production',
resolve: {
alias: {
ol: path.resolve('./src/ol'),
},
},
output: {
path: path.resolve('./build/legacy'),
filename: 'ol.js',
library: 'ol',
libraryTarget: 'umd',
libraryExport: 'default',
},
};