Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
0b3e5ec4
Unverified
Commit
0b3e5ec4
authored
Nov 20, 2018
by
Marcus Efraimsson
Committed by
GitHub
Nov 20, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #14137 from grafana/webpack-error-template-fix
fix for issue with error view in production builds
parents
42d5003b
34c70ca7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
6 deletions
+7
-6
pkg/middleware/recovery.go
+1
-0
scripts/webpack/webpack.dev.js
+1
-1
scripts/webpack/webpack.prod.js
+5
-5
No files found.
pkg/middleware/recovery.go
View file @
0b3e5ec4
...
...
@@ -115,6 +115,7 @@ func Recovery() macaron.Handler {
c
.
Data
[
"Title"
]
=
"Server Error"
c
.
Data
[
"AppSubUrl"
]
=
setting
.
AppSubUrl
c
.
Data
[
"Theme"
]
=
setting
.
DefaultTheme
if
setting
.
Env
==
setting
.
DEV
{
if
theErr
,
ok
:=
err
.
(
error
);
ok
{
...
...
scripts/webpack/webpack.dev.js
View file @
0b3e5ec4
...
...
@@ -85,7 +85,7 @@ module.exports = merge(common, {
new
HtmlWebpackPlugin
({
filename
:
path
.
resolve
(
__dirname
,
'../../public/views/error.html'
),
template
:
path
.
resolve
(
__dirname
,
'../../public/views/error-template.html'
),
inject
:
'false'
,
inject
:
false
,
}),
new
HtmlWebpackPlugin
({
filename
:
path
.
resolve
(
__dirname
,
'../../public/views/index.html'
),
...
...
scripts/webpack/webpack.prod.js
View file @
0b3e5ec4
...
...
@@ -75,16 +75,16 @@ module.exports = merge(common, {
}),
new
ngAnnotatePlugin
(),
new
HtmlWebpackPlugin
({
filename
:
path
.
resolve
(
__dirname
,
'../../public/views/error.html'
),
template
:
path
.
resolve
(
__dirname
,
'../../public/views/error-template.html'
),
inject
:
false
,
}),
new
HtmlWebpackPlugin
({
filename
:
path
.
resolve
(
__dirname
,
'../../public/views/index.html'
),
template
:
path
.
resolve
(
__dirname
,
'../../public/views/index-template.html'
),
inject
:
'body'
,
chunks
:
[
'vendor'
,
'app'
],
}),
new
HtmlWebpackPlugin
({
filename
:
path
.
resolve
(
__dirname
,
'../../public/views/error.html'
),
template
:
path
.
resolve
(
__dirname
,
'../../public/views/error-template.html'
),
inject
:
false
,
}),
function
()
{
this
.
hooks
.
done
.
tap
(
'Done'
,
function
(
stats
)
{
if
(
stats
.
compilation
.
errors
&&
stats
.
compilation
.
errors
.
length
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment