// UMD config

const path = require('path')
const webpack = require('webpack')

module.exports = {
  devtool: 'source-map',
  entry: {
    'js-search': './source/index.js'
  },
  output: {
    path: 'dist/umd',
    filename: 'js-search.js',
    libraryTarget: 'umd',
    library: 'JsSearch'
  },
  externals: {
  },
  plugins: [
    new webpack.optimize.UglifyJsPlugin({
      beautify: true,
      comments: true,
      mangle: false
    })
  ],
  module: {
    loaders: [
      {
        test: /\.js$/,
        loaders: ['babel-loader'],
        include: path.join(__dirname, 'source')
      }
    ]
  }
}

// UMD config

const path = require('path')
const webpack = require('webpack')

module.exports = {
  devtool: 'source-map',
  entry: {
    'js-search': './source/index.js'
  },
  output: {
    path: path.join(__dirname,'dist/umd'),
    filename: 'js-search.js',
    libraryTarget: 'umd',
    library: 'JsSearch'
  },
  externals: {
  },
  plugins: [
    new webpack.optimize.UglifyJsPlugin({
      beautify: true,
      comments: true,
      mangle: false
    })
  ],
  module: {
    loaders: [
      {
        test: /\.js$/,
        loaders: ['babel-loader'],
        include: path.join(__dirname, 'source')
      }
    ]
  }
}

Fix the provided value dist/umd is not an absolute path
Fix the provided value dist/umd is not an absolute path
