ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anovi...@apache.org
Subject [19/50] [abbrv] ignite git commit: Fixed url rewriting in webpack dev server configuration.
Date Thu, 08 Sep 2016 04:46:36 GMT
Fixed url rewriting in webpack dev server configuration.


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/2fb16dd9
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/2fb16dd9
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/2fb16dd9

Branch: refs/heads/ignite-3629
Commit: 2fb16dd9a6e68a26edab912c43aed48835e806e1
Parents: 916be77
Author: Maxim Afanasiev <mafkus@gmail.com>
Authored: Fri Aug 26 13:53:33 2016 +0700
Committer: Maxim Afanasiev <mafkus@gmail.com>
Committed: Fri Aug 26 13:55:44 2016 +0700

----------------------------------------------------------------------
 .../gulpfile.babel.js/webpack/environments/development.js      | 6 ++----
 modules/web-console/frontend/package.json                      | 2 +-
 2 files changed, 3 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/2fb16dd9/modules/web-console/frontend/gulpfile.babel.js/webpack/environments/development.js
----------------------------------------------------------------------
diff --git a/modules/web-console/frontend/gulpfile.babel.js/webpack/environments/development.js
b/modules/web-console/frontend/gulpfile.babel.js/webpack/environments/development.js
index 45773cf..9758221 100644
--- a/modules/web-console/frontend/gulpfile.babel.js/webpack/environments/development.js
+++ b/modules/web-console/frontend/gulpfile.babel.js/webpack/environments/development.js
@@ -51,10 +51,8 @@ export default () => {
                 '/api/v1/*': {
                     target: 'http://localhost:3000',
                     changeOrigin: true,
-                    rewrite: (req) => {
-                        req.url = req.url.replace(/^\/api\/v1/, '');
-
-                        return req;
+                    pathRewrite:{
+                        '^/api/v1' : ''
                     }
                 }
             },

http://git-wip-us.apache.org/repos/asf/ignite/blob/2fb16dd9/modules/web-console/frontend/package.json
----------------------------------------------------------------------
diff --git a/modules/web-console/frontend/package.json b/modules/web-console/frontend/package.json
index 5814522..7ea2893 100644
--- a/modules/web-console/frontend/package.json
+++ b/modules/web-console/frontend/package.json
@@ -120,6 +120,6 @@
     "url": "^0.11.0",
     "url-loader": "^0.5.6",
     "webpack": "^1.13.1",
-    "webpack-dev-server": "^1.14.1"
+    "webpack-dev-server": "^1.15.0"
   }
 }


Mime
View raw message