mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2024-11-10 09:07:47 +01:00
39 lines
829 B
JavaScript
39 lines
829 B
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|ttf|woff|woff2)$/,
|
|
loader: 'file?name=fonts/[name].[ext]'
|
|
},
|
|
{
|
|
test: /\.ico$/,
|
|
loader: 'file?name=[name].[ext]'
|
|
},
|
|
{
|
|
test: /\.(svg|gif|jpg|png)$/,
|
|
loader: 'file?name=img/[name].[ext]'
|
|
},
|
|
{
|
|
test: /\.json$/,
|
|
loader: 'json-loader'
|
|
},
|
|
{
|
|
test: /[\/\\](node_modules|global|src)[\/\\].*\.css$/,
|
|
loaders: [
|
|
'style?sourceMap',
|
|
'css'
|
|
]
|
|
}
|
|
];
|