mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2024-12-27 09:05:25 +01:00
49 lines
1.1 KiB
JavaScript
49 lines
1.1 KiB
JavaScript
module.exports = [
|
|
{
|
|
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'],
|
|
}
|
|
},
|
|
{
|
|
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'
|
|
},
|
|
{
|
|
test: /\.js$/,
|
|
include: '/node_modules/mapbox-gl-shaders/index.js',
|
|
loader: 'transform/cacheable?brfs'
|
|
}
|
|
];
|