text: const merge = require('webpack-merge');
  const MiniCssExtractPlugin = require('mini-css-extract-plugin');
  const DefinePlugin = require('webpack/lib/DefinePlugin');
  const common = require('./webpack.common.js');
  
  module.exports = merge(common, {
    mode: 'development',
    devtool: 'inline-source-map',
    devServer: {
      contentBase: '../dist',
      historyApiFallback: true,
      hot: true,
      inline: true,
    },
    output: {
      publicPath: '/'
    },
    plugins: [
      new DefinePlugin({
        'process.env': {
          NODE_ENV: JSON.stringify('development'),
        },
      }),
      /*
       * Plugin: MiniCssExtractPlugin
       * Description: This plugin extracts CSS into separate files.
       * It creates a CSS file per JS file which contains CSS.
       * It supports On-Demand-Loading of CSS and SourceMaps.
       * See: https://github.com/webpack-contrib/mini-css-extract-plugin
       */
      new MiniCssExtractPlugin({
        filename: '[name].css',
        chunkFilename: '[id].css',
      }),
    ],
  });
  