2015-06-15 15:21:19 +02:00
|
|
|
module.exports = [
|
2016-12-16 15:04:17 +01:00
|
|
|
{
|
|
|
|
test: /\.jsx?$/,
|
|
|
|
exclude: /(node_modules|bower_components|public)/,
|
|
|
|
loaders: ['react-hot-loader/webpack']
|
|
|
|
},
|
|
|
|
{
|
|
|
|
test: /\.jsx?$/,
|
|
|
|
exclude: /(node_modules|bower_components|public)/,
|
|
|
|
loader: 'babel',
|
|
|
|
query: {
|
|
|
|
presets: ['es2015', 'react'],
|
|
|
|
plugins: ['transform-runtime', 'transform-decorators-legacy', 'transform-class-properties'],
|
|
|
|
}
|
|
|
|
},
|
2016-12-19 12:51:23 +01:00
|
|
|
{
|
|
|
|
test: /\.js?$/,
|
|
|
|
include: /node_modules\/mapbox-gl\//,
|
|
|
|
loader: 'babel',
|
|
|
|
query: {
|
|
|
|
presets: ['react'],
|
|
|
|
plugins: ['transform-flow-strip-types'],
|
|
|
|
}
|
|
|
|
},
|
2016-12-16 15:04:17 +01:00
|
|
|
{
|
|
|
|
test: /\.(eot|svg|ttf|woff|woff2)$/,
|
|
|
|
loader: 'file?name=fonts/[name].[ext]'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
test: /\.svg(\?v=\d+\.\d+\.\d+)?$/,
|
|
|
|
exclude: /(node_modules|bower_components)/,
|
|
|
|
loader: "url?limit=10000&mimetype=image/svg+xml"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
test: /\.gif/,
|
|
|
|
exclude: /(node_modules|bower_components)/,
|
|
|
|
loader: "url-loader?limit=10000&mimetype=image/gif"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
test: /\.jpg/,
|
|
|
|
exclude: /(node_modules|bower_components)/,
|
|
|
|
loader: "url-loader?limit=10000&mimetype=image/jpg"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
test: /\.png/,
|
|
|
|
exclude: /(node_modules|bower_components)/,
|
|
|
|
loader: "url-loader?limit=10000&mimetype=image/png"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
test: /\.json$/,
|
|
|
|
loader: 'json-loader'
|
|
|
|
},
|
|
|
|
{
|
2016-12-20 13:28:50 +01:00
|
|
|
test: /\.js$/,
|
|
|
|
include: /node_modules\/mapbox-gl\/js\/render\/shaders.js/,
|
|
|
|
loader: 'transform/cacheable?brfs'
|
2016-12-16 15:04:17 +01:00
|
|
|
}
|
2015-06-15 15:21:19 +02:00
|
|
|
];
|