mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-21 03:22:11 +00:00
version added to env
This commit is contained in:
parent
840dbd925b
commit
cc97a79fa3
2 changed files with 3 additions and 0 deletions
|
|
@ -118,6 +118,7 @@ const Settings = () => {
|
||||||
<Button className={classnames(styles['side-menu-button'], { [styles['selected']]: selectedSectionId === STREAMING_SECTION })} data-section={STREAMING_SECTION} onClick={sideMenuButtonOnClick}>
|
<Button className={classnames(styles['side-menu-button'], { [styles['selected']]: selectedSectionId === STREAMING_SECTION })} data-section={STREAMING_SECTION} onClick={sideMenuButtonOnClick}>
|
||||||
Streaming server
|
Streaming server
|
||||||
</Button>
|
</Button>
|
||||||
|
{process.env.version}
|
||||||
</div>
|
</div>
|
||||||
<div ref={sectionsContainerRef} className={styles['sections-container']} onScroll={sectionsContainerOnScorll}>
|
<div ref={sectionsContainerRef} className={styles['sections-container']} onScroll={sectionsContainerOnScorll}>
|
||||||
<div ref={generalSectionRef} className={styles['section-container']}>
|
<div ref={generalSectionRef} className={styles['section-container']}>
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@ const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
||||||
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
|
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
|
||||||
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
||||||
const TerserPlugin = require('terser-webpack-plugin');
|
const TerserPlugin = require('terser-webpack-plugin');
|
||||||
|
const pachageJson = require('./package.json');
|
||||||
|
|
||||||
module.exports = (env, argv) => ({
|
module.exports = (env, argv) => ({
|
||||||
entry: './src/index.js',
|
entry: './src/index.js',
|
||||||
|
|
@ -130,6 +131,7 @@ module.exports = (env, argv) => ({
|
||||||
plugins: [
|
plugins: [
|
||||||
new webpack.EnvironmentPlugin({
|
new webpack.EnvironmentPlugin({
|
||||||
DEBUG: argv.mode !== 'production',
|
DEBUG: argv.mode !== 'production',
|
||||||
|
version: pachageJson.version,
|
||||||
...env
|
...env
|
||||||
}),
|
}),
|
||||||
new webpack.ProgressPlugin(),
|
new webpack.ProgressPlugin(),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue