Use webpack instead of rollup for the legacy build

This also changes the target path of the legacy build to build/legacy
This commit is contained in:
ahocevar
2018-10-25 21:54:51 +02:00
parent 1674620943
commit e239eb338f
3 changed files with 14 additions and 27 deletions
+13
View File
@@ -0,0 +1,13 @@
const path = require('path');
module.exports = {
entry: './build/index.js',
devtool: 'source-map',
mode: 'production',
output: {
path: path.resolve('./build/legacy'),
filename: 'ol.js',
library: 'ol',
libraryTarget: 'umd',
libraryExport: 'default'
}
};