const commonConfig = require('./webpack.common');
const path = require('path');
const Webpack = require('webpack');

const { version } = require('./package.json');

module.exports = Object.assign(commonConfig, {
  entry: './src/main.js',
  output: {
    path: path.join(__dirname, 'dist'),
    publicPath: '/assets/',
    filename: 'rekapi.js',
    library: 'rekapi',
    libraryTarget: 'umd',
    umdNamedDefine: true
  },
  externals: {
    shifty: 'shifty',
    lodash: 'lodash',
  },
  plugins: [
    new Webpack.BannerPlugin(version)
  ]
});

const commonConfig = require('./webpack.common');
const path = require('path');
const Webpack = require('webpack');

const { version } = require('./package.json');

module.exports = Object.assign(commonConfig, {
  entry: './src/main.js',
  output: {
    path: path.join(__dirname, 'dist'),
    publicPath: '/assets/',
    filename: 'rekapi.js',
    library: 'rekapi',
    libraryTarget: 'umd',
    umdNamedDefine: true
  },
  plugins: [
    new Webpack.BannerPlugin(version)
  ]
});

Revert "Externalize Shifty and Lodash"
Revert "Externalize Shifty and Lodash"

This reverts commit ebc2fd169272b7bfec9ae2fbdf4e1ef4fb52b7cd.

This is fixes the fact that Rekapi will not load properly in web
environments if the dependencies are not bundled into the binary.  This
may not be ideal and warrants further investigation for a better
solution.
