feat(webapp): add monorepo version on the sidebar

This commit is contained in:
Ahmed Bouhuolia
2023-06-12 02:44:12 +02:00
parent 35ebb9c2aa
commit b9572420ed
6 changed files with 34 additions and 137 deletions

View File

@@ -1,7 +1,18 @@
const path = require('path');
const webpack = require('webpack');
const dotenv = require('dotenv-webpack');
module.exports = {
webpack: {
plugins: [
new dotenv(),
new webpack.DefinePlugin({
'process.env': {
MONOREPO_VERSION: JSON.stringify(require('../../lerna.json').version),
},
}),
],
alias: {
'@': path.resolve(__dirname, 'src'),
},