text: const fs = require('fs');
  const path = require('path');
  const webpack = require('webpack');
  const { merge } = require('webpack-merge');
  const commonConfig = require('./webpack.common.js');
  
  module.exports = async (env, options) => {
      const config = merge(commonConfig, {
      devtool: 'eval-source-map',
      devServer: {
          publicPath: '/',
          contentBase: path.resolve('dist'),
          hot: true,
          compress: true,
          overlay: {
              warnings: false,
              errors: true
          },
          historyApiFallback: true,
  	headers: {
              "Access-Control-Allow-Origin": "*"
  	},
  	https: {
              key: fs.readFileSync('/etc/letsencrypt/live/excelint-addin.westus2.cloudapp.azure.com-0002/privkey.pem'),
              cert: fs.readFileSync('/etc/letsencrypt/live/excelint-addin.westus2.cloudapp.azure.com-0002/fullchain.pem'),
          },
  	allowedHosts: [
              '.amazonaws.com', '.azure.com'
          ]
      },
      plugins: [
          new webpack.HotModuleReplacementPlugin()
      ]});
      return config;
  }
  