summaryrefslogtreecommitdiff
path: root/webpack.config.js
diff options
context:
space:
mode:
authormokha <mokha@cisco.com>2018-08-15 14:27:37 -0600
committermokha <mokha@cisco.com>2018-08-15 14:27:37 -0600
commit84321ea49d64d9fb4cd07193429e1f350cb624d8 (patch)
treebab86a1ac0fcf1c45969fb836e724d3d4fb09aaa /webpack.config.js
parentaa3a181d831b160776c8239d210bf6850d4be84a (diff)
configure webpack dev server.
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/webpack.config.js b/webpack.config.js
index 833d64b..1d6deba 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -1,6 +1,13 @@
const HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = {
+ devServer: {
+ host: process.env.HOST,
+ open: true,
+ overlay: true,
+ port: process.env.PORT,
+ stats: "errors-only",
+ },
plugins: [
new HtmlWebpackPlugin({
title: 'Webpack demo',