Skip to content

Commit

Permalink
8130b7e replay gib_eks
Browse files Browse the repository at this point in the history
  • Loading branch information
august782 committed Feb 17, 2018
1 parent f2f408a commit 9f857e3
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
5 changes: 5 additions & 0 deletions graylog2-web-interface/.babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@
]
}
}
},
"start-nohmr": {
"plugins": [
"react-auto-display-name"
]
}
}
}
1 change: 1 addition & 0 deletions graylog2-web-interface/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"readme": "../README.md",
"scripts": {
"start": "./node_modules/.bin/webpack --config webpack.vendor.js && ./node_modules/.bin/webpack-dev-server --config webpack.combined.config.js",
"start-nohmr": "./node_modules/.bin/webpack --config webpack.vendor.js && ./node_modules/.bin/webpack-dev-server --watch --config webpack.combined.config.js",
"build": "./node_modules/.bin/webpack -p --config webpack.vendor.js && ./node_modules/.bin/webpack",
"test": "./node_modules/.bin/webpack --config webpack.vendor.js && ./node_modules/karma/bin/karma start karma.ci.conf.js",
"prepare-dev": "./tools/prepare-dev"
Expand Down
21 changes: 21 additions & 0 deletions graylog2-web-interface/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,27 @@ if (TARGET === 'start') {
});
}

if (TARGET === 'start-nohmr') {
console.log('Running in development (no HMR) mode');
module.exports = merge(webpackConfig, {
devtool: 'eval',
devServer: {
historyApiFallback: true,
hot: false,
inline: true,
progress: true,
},
output: {
path: BUILD_PATH,
filename: '[name].js',
publicPath: '/',
},
plugins: [
new webpack.DefinePlugin({DEVELOPMENT: true}),
],
});
}

if (TARGET === 'build') {
console.log('Running in production mode');
module.exports = merge(webpackConfig, {
Expand Down

0 comments on commit 9f857e3

Please sign in to comment.