File tree 2 files changed +8
-4
lines changed
webapp/javascript/components
2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -177,9 +177,9 @@ module.exports = {
177
177
new MiniCssExtractPlugin ( {
178
178
filename : '[name].[hash].css' ,
179
179
} ) ,
180
- // new BundleAnalyzerPlugin ({
181
- // analyzerPort: 8889
182
- // }),
180
+ new webpack . DefinePlugin ( {
181
+ PYROSCOPE_VERSION : JSON . stringify ( require ( "../../package.json" ) . version )
182
+ } ) ,
183
183
new webpack . IgnorePlugin ( / ^ \. \/ l o c a l e $ / , / m o m e n t $ / ) ,
184
184
new CopyPlugin ( {
185
185
patterns : [
Original file line number Diff line number Diff line change @@ -10,6 +10,10 @@ function copyrightYears(start, end) {
10
10
return start == end ? start : `${ start } – ${ end } ` ;
11
11
}
12
12
13
+ function version ( ) {
14
+ return 'v' + PYROSCOPE_VERSION ;
15
+ }
16
+
13
17
class Footer extends React . Component {
14
18
constructor ( props ) {
15
19
super ( props ) ;
@@ -19,7 +23,7 @@ class Footer extends React.Component {
19
23
// let flags = BUILD_FLAGS.split("\n").map(x => x.replace("-X github.com/pyroscope-io/pyroscope/pkg/build.", ""));
20
24
// console.log(flags);
21
25
return < div className = "footer" >
22
- < span > © Pyroscope { copyrightYears ( START_YEAR , new Date ( ) . getFullYear ( ) ) } </ span >
26
+ < span title = { version ( ) } > © Pyroscope { copyrightYears ( START_YEAR , new Date ( ) . getFullYear ( ) ) } </ span >
23
27
</ div >
24
28
}
25
29
}
You can’t perform that action at this time.
0 commit comments