So I\'m trying to build a map app using webpack and leaflet. I can require leaflet.js from my map.js file, but I can\'t call
webpack
leaflet
leaflet.js
map.js
I managed to do it easier. Just needed to add loaders for css and for png
loaders: [ { test: /\.css$/, loader: 'style-loader!css-loader' }, { test: /\.png$/, loader: 'url-loader', query: { mimetype: 'image/png' } } ]