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