2018-05-03 19:51:15 +02:00
|
|
|
const path = require('path')
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
module: {
|
|
|
|
rules: [
|
|
|
|
{
|
2020-03-11 16:00:39 +01:00
|
|
|
test: /\.(woff(2)?|ttf|eot|otf)(\?v=\d+\.\d+\.\d+)?$/,
|
2018-05-03 19:51:15 +02:00
|
|
|
loaders: [{
|
|
|
|
loader: 'file-loader',
|
|
|
|
options: {
|
|
|
|
name: '[name].[ext]',
|
|
|
|
outputPath: 'fonts/',
|
|
|
|
},
|
|
|
|
}],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
test: /\.scss$/,
|
|
|
|
loaders: [
|
|
|
|
'style-loader',
|
|
|
|
'css-loader',
|
|
|
|
'resolve-url-loader',
|
|
|
|
{
|
|
|
|
loader: 'sass-loader',
|
|
|
|
options: {
|
|
|
|
sourceMap: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2020-03-11 16:00:39 +01:00
|
|
|
{
|
|
|
|
test: /\.svg$/,
|
|
|
|
use: [
|
|
|
|
{
|
|
|
|
loader: 'file-loader',
|
|
|
|
options: {
|
|
|
|
name: '[name].[ext]',
|
|
|
|
},
|
|
|
|
}
|
|
|
|
],
|
|
|
|
},
|
2018-05-03 19:51:15 +02:00
|
|
|
],
|
|
|
|
},
|
|
|
|
resolve: {
|
|
|
|
alias: {
|
2020-02-08 20:56:33 +01:00
|
|
|
'./fonts/Font_Awesome': path.resolve(__dirname, '../app/fonts/Font_Awesome'),
|
2018-05-03 19:51:15 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|