const path = require('path')
const HtmlWebpackPlugin = require('html-webpack-plugin')

const config = require('./config')

module.exports = {
  entry: {
    client: './src/index.js'
  },
  output: {
    path: path.join(__dirname, '../dist'),
    filename: '[name].js',
    publicPath: './'
  },
  {{#if antd}}
  resolve: {
    extensions: ['.js', '.jsx', '.json']
  },
  {{else}}
  resolve: {
    extensions: ['.web.js', '.js', '.jsx', '.json']
  },
  {{/if}}
  module: {
    rules: [
      {{#if eslint}}
      {
        enforce: 'pre',
        test: /.js[x]?$/,
        loader: 'eslint-loader',
        exclude: /node_modules/
      },
      {{/if}}
      {
        test: /\.js[x]?$/,
        loader: 'babel-loader',
        exclude: [/node_modules/]
      },
      {
        test: /\.(ico|jpg|png|gif|eot|otf|webp|svg|ttf|woff|woff2)(\?.*)?$/,
        loader: 'file-loader?limit=8192'
      }
    ]
  },
  plugins: [
    new HtmlWebpackPlugin({
      title: config.title,
      template: path.join(__dirname, '/index.html'),
      filename: './index.html'
    })
  ]
}

@@ -299,13 +299,24 @@
 %7B#if
- 
+_eq theme '
 antd
+'
 %7D%7D%0A 
@@ -457,24 +457,27 @@
   %7D,%0A  %7B%7B/if
+_eq
 %7D%7D%0A  module:

Update webpack.base.js