File tree 3 files changed +7
-6
lines changed
3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -115,6 +115,7 @@ func Recovery() macaron.Handler {
115
115
116
116
c .Data ["Title" ] = "Server Error"
117
117
c .Data ["AppSubUrl" ] = setting .AppSubUrl
118
+ c .Data ["Theme" ] = setting .DefaultTheme
118
119
119
120
if setting .Env == setting .DEV {
120
121
if theErr , ok := err .(error ); ok {
Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ module.exports = merge(common, {
85
85
new HtmlWebpackPlugin ( {
86
86
filename : path . resolve ( __dirname , '../../public/views/error.html' ) ,
87
87
template : path . resolve ( __dirname , '../../public/views/error-template.html' ) ,
88
- inject : ' false' ,
88
+ inject : false ,
89
89
} ) ,
90
90
new HtmlWebpackPlugin ( {
91
91
filename : path . resolve ( __dirname , '../../public/views/index.html' ) ,
Original file line number Diff line number Diff line change @@ -74,17 +74,17 @@ module.exports = merge(common, {
74
74
filename : "grafana.[name].[hash].css"
75
75
} ) ,
76
76
new ngAnnotatePlugin ( ) ,
77
+ new HtmlWebpackPlugin ( {
78
+ filename : path . resolve ( __dirname , '../../public/views/error.html' ) ,
79
+ template : path . resolve ( __dirname , '../../public/views/error-template.html' ) ,
80
+ inject : false ,
81
+ } ) ,
77
82
new HtmlWebpackPlugin ( {
78
83
filename : path . resolve ( __dirname , '../../public/views/index.html' ) ,
79
84
template : path . resolve ( __dirname , '../../public/views/index-template.html' ) ,
80
85
inject : 'body' ,
81
86
chunks : [ 'vendor' , 'app' ] ,
82
87
} ) ,
83
- new HtmlWebpackPlugin ( {
84
- filename : path . resolve ( __dirname , '../../public/views/error.html' ) ,
85
- template : path . resolve ( __dirname , '../../public/views/error-template.html' ) ,
86
- inject : false ,
87
- } ) ,
88
88
function ( ) {
89
89
this . hooks . done . tap ( 'Done' , function ( stats ) {
90
90
if ( stats . compilation . errors && stats . compilation . errors . length ) {
You can’t perform that action at this time.
0 commit comments