Upgraded reference to mapbox-gl to v0.29.0 to follow their latest webpack recommendations and support Windows dev. This is addressed in mapbox/mapbox-gl-js#3724

This commit is contained in:
PetersonGIS
2016-12-28 11:10:27 -07:00
parent 80678af691
commit 58897f1856
6 changed files with 8 additions and 34 deletions
+2 -9
View File
@@ -31,19 +31,12 @@ module.exports = {
},
resolve: {
alias: {
'webworkify': 'webworkify-webpack',
// TODO: otherwise I get a max call stack error in browser?
// 'mapbox-gl': path.resolve('./node_modules/mapbox-gl/dist/mapbox-gl.js')
'webworkify': 'webworkify-webpack'
},
extensions: ['', '.js', '.jsx']
},
module: {
loaders,
postLoaders: [{
include: /node_modules\/mapbox-gl\/js\/render\/shaders.js/,
loader: 'transform',
query: 'brfs'
}]
loaders
},
node: {
fs: "empty",