Hack map and toolbar view

This commit is contained in:
lukasmartinelli
2016-09-08 19:47:29 +02:00
parent d5c252ee54
commit 74a92aa1f4
15 changed files with 327 additions and 99 deletions
+18 -1
View File
@@ -25,6 +25,18 @@ loaders.push({
]
});
// Mapbox GL
loaders.push({
test: /\.json$/,
loader: 'json-loader'
});
loaders.push({
test: /\.js$/,
include: path.resolve('node_modules/mapbox-gl-shaders/index.js'),
loader: 'transform/cacheable?brfs'
});
// local css modules
loaders.push({
test: /[\/\\]src[\/\\].*\.css/,
@@ -49,7 +61,12 @@ module.exports = {
extensions: ['', '.js', '.jsx']
},
module: {
loaders
loaders,
postLoaders: [{
include: /node_modules\/mapbox-gl-shaders/,
loader: 'transform',
query: 'brfs'
}]
},
devServer: {
contentBase: "./public",