Index: src/mapservice-webclient/webpack.config.js
===================================================================
--- src/mapservice-webclient/webpack.config.js	(revision 5e4cb7308a6b389143e06dfa849e638ac3c2e3cb)
+++ src/mapservice-webclient/webpack.config.js	(revision 5e4cb7308a6b389143e06dfa849e638ac3c2e3cb)
@@ -0,0 +1,58 @@
+const webpack = require('webpack');
+const HtmlWebpackPlugin = require('html-webpack-plugin');
+const path = require('path');
+const CopyPlugin = require('copy-webpack-plugin');
+
+module.exports = {
+    entry: './src/main.ts',
+    module: {
+        rules: [
+            {
+                test: /\.ts$/,
+                use: ['ts-loader', 'angular2-template-loader'],
+                exclude: /node_modules/
+            },
+            {
+                test: /\.(html|css)$/,
+                loader: 'raw-loader'
+            },
+        ]
+    },
+    resolve: {
+        extensions: ['.ts', '.js'],
+        alias: {
+            '@': path.resolve(__dirname, 'src/app/'),
+        }
+    },
+    plugins: [
+        new HtmlWebpackPlugin({
+            template: './src/index.html',
+            filename: 'index.html',
+            inject: 'body'
+        }),
+        new webpack.DefinePlugin({
+            // global app config object
+            config: JSON.stringify({
+                apiUrl: 'http://localhost:4000'
+            })
+        }),
+        new CopyPlugin([
+          { from: 'src/css', to: 'css' },
+          { from: '../common/css', to: 'css' },
+          { from: 'src/js', to: 'js' },
+          { from: '../common/js', to: 'js' },
+          { from: '../common/lib', to: 'lib' },
+          { from: '../common/resources', to: 'resources' },
+          { from: '../common/icon/gnuboat-256-256-transparent.png', to: 'resources' }
+        ])
+    ],
+    optimization: {
+        splitChunks: {
+            chunks: 'all',
+        },
+        runtimeChunk: true
+    },
+    devServer: {
+        historyApiFallback: true
+    }
+};
