'use strict';

const webpack = require('webpack');
const config = require('./webpack.config.js');
const HtmlWebpackPlugin = require('html-webpack-plugin');

config.entry = './demo/demo.js';
config.devServer = {
  host: 'localhost',
  port: 8080,

  // respond to 404s with index.html
  historyApiFallback: true,
};
config.plugins = [
  new HtmlWebpackPlugin({
    inject: 'body',
    template: './demo/demo.html',
    cache: false
  }),
];
module.exports = config;

@@ -12,44 +12,8 @@
 ';%0A%0A
-const webpack = require('webpack');%0A
 cons

remove a redundant line from demo webpack config