2020-07-17 10:03:38 +02:00
|
|
|
require('dotenv').config();
|
2020-09-10 01:12:29 +02:00
|
|
|
const pkg = require('./package.json');
|
2020-07-17 10:03:38 +02:00
|
|
|
|
|
|
|
module.exports = {
|
2020-09-10 01:12:29 +02:00
|
|
|
env: {
|
|
|
|
VERSION: pkg.version,
|
|
|
|
},
|
2020-07-17 10:03:38 +02:00
|
|
|
webpack(config) {
|
|
|
|
config.module.rules.push({
|
|
|
|
test: /\.svg$/,
|
|
|
|
issuer: {
|
|
|
|
test: /\.js$/,
|
|
|
|
},
|
|
|
|
use: ['@svgr/webpack'],
|
|
|
|
});
|
|
|
|
|
|
|
|
return config;
|
|
|
|
},
|
|
|
|
};
|