Fix legacy build by defining ol alias
This commit is contained in:
@@ -3,6 +3,11 @@ module.exports = {
|
|||||||
entry: './build/index.js',
|
entry: './build/index.js',
|
||||||
devtool: 'source-map',
|
devtool: 'source-map',
|
||||||
mode: 'production',
|
mode: 'production',
|
||||||
|
resolve: {
|
||||||
|
alias: {
|
||||||
|
ol: path.resolve('./src/ol'),
|
||||||
|
},
|
||||||
|
},
|
||||||
output: {
|
output: {
|
||||||
path: path.resolve('./build/legacy'),
|
path: path.resolve('./build/legacy'),
|
||||||
filename: 'ol.js',
|
filename: 'ol.js',
|
||||||
|
|||||||
Reference in New Issue
Block a user