2018-05-03 19:51:15 +02:00
|
|
|
const path = require('path')
|
|
|
|
|
2020-04-08 15:22:20 +02:00
|
|
|
const CopyWebpackPlugin = require('copy-webpack-plugin')
|
|
|
|
|
2018-05-03 19:51:15 +02:00
|
|
|
module.exports = {
|
|
|
|
module: {
|
2020-03-28 06:03:24 +01:00
|
|
|
strictExportPresence: true,
|
2018-05-03 19:51:15 +02:00
|
|
|
rules: [
|
|
|
|
{
|
|
|
|
test: /\.scss$/,
|
|
|
|
loaders: [
|
|
|
|
'style-loader',
|
|
|
|
{
|
2020-03-30 20:38:02 +02:00
|
|
|
loader: 'css-loader',
|
2018-05-03 19:51:15 +02:00
|
|
|
options: {
|
2020-03-30 20:38:02 +02:00
|
|
|
import: false,
|
|
|
|
url: false,
|
2018-05-03 19:51:15 +02:00
|
|
|
},
|
|
|
|
},
|
2020-03-30 20:38:02 +02:00
|
|
|
'resolve-url-loader',
|
2020-03-11 16:00:39 +01:00
|
|
|
{
|
2020-03-30 20:38:02 +02:00
|
|
|
loader: 'sass-loader',
|
2020-03-11 16:00:39 +01:00
|
|
|
options: {
|
2020-03-30 20:38:02 +02:00
|
|
|
sourceMap: true,
|
2020-03-11 16:00:39 +01:00
|
|
|
},
|
2020-03-30 20:38:02 +02:00
|
|
|
},
|
2020-03-11 16:00:39 +01:00
|
|
|
],
|
|
|
|
},
|
2018-05-03 19:51:15 +02:00
|
|
|
],
|
|
|
|
},
|
2020-04-08 15:22:20 +02:00
|
|
|
plugins: [
|
|
|
|
new CopyWebpackPlugin([
|
|
|
|
{
|
|
|
|
from: path.join('node_modules', '@fortawesome', 'fontawesome-free', 'webfonts'),
|
|
|
|
to: path.join('fonts', 'fontawesome'),
|
|
|
|
},
|
|
|
|
]),
|
|
|
|
],
|
2018-05-03 19:51:15 +02:00
|
|
|
}
|