mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2024-11-10 15:17:46 +01:00
92a1be83b6
This is due to .babelrc being used for other tooling.
38 lines
702 B
JavaScript
38 lines
702 B
JavaScript
const path = require("path");
|
|
|
|
module.exports = [
|
|
{
|
|
test: /\.jsx?$/,
|
|
exclude: [
|
|
path.resolve(__dirname, '../node_modules')
|
|
],
|
|
use: 'babel-loader'
|
|
},
|
|
{
|
|
test: /\.(eot|ttf|woff|woff2)$/,
|
|
use: 'file-loader?name=fonts/[name].[ext]'
|
|
},
|
|
{
|
|
test: /\.ico$/,
|
|
use: 'file-loader?name=[name].[ext]'
|
|
},
|
|
{
|
|
test: /\.(svg|gif|jpg|png)$/,
|
|
use: 'file-loader?name=img/[name].[ext]'
|
|
},
|
|
{
|
|
test: /[\/\\](node_modules|global|src)[\/\\].*\.scss$/,
|
|
use: [
|
|
'style-loader',
|
|
"css-loader",
|
|
"sass-loader"
|
|
]
|
|
},
|
|
{
|
|
test: /[\/\\](node_modules|global|src)[\/\\].*\.css$/,
|
|
use: [
|
|
'style-loader',
|
|
'css-loader'
|
|
]
|
|
}
|
|
];
|