diff --git a/superset-frontend/src/assets/staticPages/404.html b/superset-frontend/src/assets/staticPages/404.html
new file mode 100644
index 000000000..2b20e3d71
--- /dev/null
+++ b/superset-frontend/src/assets/staticPages/404.html
@@ -0,0 +1,109 @@
+
+
+
+
+
+
+
+ Page not found
+
+ Sorry, we cannot find t he page you are looking for. You may have
+ mistyped the address or the page may have moved.
+
+ Back to home
+
+
%>)
+
+
+
diff --git a/superset-frontend/src/assets/staticPages/500.html b/superset-frontend/src/assets/staticPages/500.html
new file mode 100644
index 000000000..3808df3d5
--- /dev/null
+++ b/superset-frontend/src/assets/staticPages/500.html
@@ -0,0 +1,108 @@
+
+
+
+
+
+
+
+ Internal server error
+
+ Sorry, something went wrong. We are fixing the mistake now. Try again
+ later or go back to home.
+
+ Back to home
+
+
%>)
+
+
+
diff --git a/superset-frontend/src/staticPages/404.html b/superset-frontend/src/staticPages/404.html
deleted file mode 100644
index 67055efdb..000000000
--- a/superset-frontend/src/staticPages/404.html
+++ /dev/null
@@ -1,93 +0,0 @@
-
-
-
-
-
-
-
- Page not found
- Sorry, we cannot find t he page you are looking for. You may have mistyped the address or the page may have moved.
- Back to home
-
-
%>)
-
-
-
diff --git a/superset-frontend/src/staticPages/500.html b/superset-frontend/src/staticPages/500.html
deleted file mode 100644
index af764334f..000000000
--- a/superset-frontend/src/staticPages/500.html
+++ /dev/null
@@ -1,92 +0,0 @@
-
-
-
-
-
-
-
- Internal server error
- Sorry, something went wrong. We are fixing the mistake now. Try again later or go back to home.
- Back to home
-
-
%>)
-
-
-
diff --git a/superset-frontend/webpack.config.js b/superset-frontend/webpack.config.js
index b43b5dd74..a43d90a7e 100644
--- a/superset-frontend/webpack.config.js
+++ b/superset-frontend/webpack.config.js
@@ -123,13 +123,13 @@ const plugins = [
// static pages
new HtmlWebpackPlugin({
- template: './src/staticPages/404.html',
+ template: './src/assets/staticPages/404.html',
inject: true,
chunks: [],
filename: '404.html',
}),
new HtmlWebpackPlugin({
- template: './src/staticPages/500.html',
+ template: './src/assets/staticPages/500.html',
inject: true,
chunks: [],
filename: '500.html',
@@ -391,7 +391,7 @@ const config = {
{
test: /\.png$/,
issuer: {
- exclude: /\/src\/staticPages\//,
+ exclude: /\/src\/assets\/staticPages\//,
},
loader: 'url-loader',
options: {
@@ -402,7 +402,7 @@ const config = {
{
test: /\.png$/,
issuer: {
- test: /\/src\/staticPages\//,
+ test: /\/src\/assets\/staticPages\//,
},
loader: 'url-loader',
options: {