2018-10-06 22:05:33 +02:00
|
|
|
const path = require("path");
|
|
|
|
|
2015-06-15 15:21:19 +02:00
|
|
|
module.exports = [
|
2016-12-16 15:04:17 +01:00
|
|
|
{
|
|
|
|
test: /\.jsx?$/,
|
2018-10-06 22:05:33 +02:00
|
|
|
exclude: [
|
|
|
|
path.resolve(__dirname, '../node_modules')
|
|
|
|
],
|
2018-10-09 21:45:03 +02:00
|
|
|
use: 'babel-loader'
|
2016-12-16 15:04:17 +01:00
|
|
|
},
|
|
|
|
{
|
2016-12-31 10:34:32 +01:00
|
|
|
test: /\.(eot|ttf|woff|woff2)$/,
|
2018-10-06 22:05:33 +02:00
|
|
|
use: 'file-loader?name=fonts/[name].[ext]'
|
2016-12-16 15:04:17 +01:00
|
|
|
},
|
|
|
|
{
|
2016-12-31 10:34:32 +01:00
|
|
|
test: /\.ico$/,
|
2018-10-06 22:05:33 +02:00
|
|
|
use: 'file-loader?name=[name].[ext]'
|
2016-12-16 15:04:17 +01:00
|
|
|
},
|
|
|
|
{
|
2016-12-31 10:34:32 +01:00
|
|
|
test: /\.(svg|gif|jpg|png)$/,
|
2018-10-06 22:05:33 +02:00
|
|
|
use: 'file-loader?name=img/[name].[ext]'
|
2016-12-16 15:04:17 +01:00
|
|
|
},
|
2017-01-10 21:28:30 +01:00
|
|
|
{
|
|
|
|
test: /[\/\\](node_modules|global|src)[\/\\].*\.scss$/,
|
2018-10-06 22:05:33 +02:00
|
|
|
use: [
|
|
|
|
'style-loader',
|
|
|
|
"css-loader",
|
|
|
|
"sass-loader"
|
|
|
|
]
|
2017-01-10 21:28:30 +01:00
|
|
|
},
|
2016-12-22 18:19:34 +01:00
|
|
|
{
|
|
|
|
test: /[\/\\](node_modules|global|src)[\/\\].*\.css$/,
|
2018-10-06 22:05:33 +02:00
|
|
|
use: [
|
|
|
|
'style-loader',
|
2017-11-07 12:05:30 +01:00
|
|
|
'css-loader'
|
2016-12-22 18:19:34 +01:00
|
|
|
]
|
2016-12-16 15:04:17 +01:00
|
|
|
}
|
2015-06-15 15:21:19 +02:00
|
|
|
];
|