mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-16 02:05:04 +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;
|
|
},
|
|
};
|