diff options
| author | Luke "Jared" Bennett <lbennett@gitlab.com> | 2017-04-15 11:52:37 +0100 | 
|---|---|---|
| committer | Luke "Jared" Bennett <lbennett@gitlab.com> | 2017-04-15 12:00:33 +0100 | 
| commit | 69e49a095ded719ccfb1287b6100646663de3f03 (patch) | |
| tree | 685695f8cf26b024b38fb57369e4fa247191db4f | |
| parent | 2f35ba98fae6e0b58b196e3fbbe00e6ee703cbe8 (diff) | |
| download | gitlab-ce-69e49a095ded719ccfb1287b6100646663de3f03.tar.gz | |
Only rewire in dev
| -rw-r--r-- | config/webpack.config.js | 5 | 
1 files changed, 3 insertions, 2 deletions
| diff --git a/config/webpack.config.js b/config/webpack.config.js index f034a8ae27d..79c1d66a242 100644 --- a/config/webpack.config.js +++ b/config/webpack.config.js @@ -15,6 +15,7 @@ var DEV_SERVER_HOST = process.env.DEV_SERVER_HOST || 'localhost';  var DEV_SERVER_PORT = parseInt(process.env.DEV_SERVER_PORT, 10) || 3808;  var DEV_SERVER_LIVERELOAD = process.env.DEV_SERVER_LIVERELOAD !== 'false';  var WEBPACK_REPORT = process.env.WEBPACK_REPORT; +var rewirePlugin = IS_PRODUCTION ? '?plugins=rewire' : '';  var config = {    context: path.join(ROOT_PATH, 'app/assets/javascripts'), @@ -52,7 +53,7 @@ var config = {      vue_pipelines:        './vue_pipelines_index/index.js',      raven:                './raven/index.js',      issue_show:           './issue_show/index.js', -    group:                './group.js' +    group:                './group.js',    },    output: { @@ -68,7 +69,7 @@ var config = {        {          test: /\.js$/,          exclude: /(node_modules|vendor\/assets)/, -        loader: 'babel-loader?plugins=rewire', +        loader: `babel-loader${rewirePlugin}`,        },        {          test: /\.vue$/, | 
