mirror of
https://github.com/kremalicious/umami.git
synced 2024-12-18 15:23:38 +01:00
23 lines
373 B
JavaScript
23 lines
373 B
JavaScript
require('dotenv').config();
|
|
const pkg = require('./package.json');
|
|
|
|
module.exports = {
|
|
env: {
|
|
VERSION: pkg.version,
|
|
},
|
|
serverRuntimeConfig: {
|
|
PROJECT_ROOT: __dirname,
|
|
},
|
|
webpack(config) {
|
|
config.module.rules.push({
|
|
test: /\.svg$/,
|
|
issuer: {
|
|
test: /\.js$/,
|
|
},
|
|
use: ['@svgr/webpack'],
|
|
});
|
|
|
|
return config;
|
|
},
|
|
};
|