text: const webpack = require('webpack')
  const HtmlWebpackPlugin = require('html-webpack-plugin');
  
  module.exports = {
    entry: './example/index.js',
    devtool: 'inline-source-map',
    output: { filename: 'bundle.js', publicPath: '' },
    resolve: {
      alias: { 'styled-components$': 'styled-components/lib/index.js' }
    },
    module: {
      rules: [
        {
          test: /\.js$/,
          use: [ { loader: 'babel-loader', options: { presets: ['es2015', 'react', 'stage-0'] } } ],
          exclude: /node_modules/,
        }
      ]
    },
    devServer: { historyApiFallback: true },
    plugins: [
      new HtmlWebpackPlugin({ title: 'Example', template: './example/index.html' })
    ],
  }
  