const BabiliPlugin = require('babili-webpack-plugin');
var path = require('path');

module.exports = {
  entry: './src/civ5save.js',
  output: {
    filename: 'civ5save.min.js',
    path: path.resolve(__dirname, 'dist')
  },
  plugins: [
    new BabiliPlugin()
  ]
};

const BabiliPlugin = require('babili-webpack-plugin');
var path = require('path');

module.exports = {
  entry: './src/civ5save.js',
  output: {
    filename: 'civ5save.min.js',
    // library and libraryTarget are necessary so this can be imported as a module
    library: 'Civ5Save',
    libraryTarget: 'umd',
    path: path.resolve(__dirname, 'dist')
  },
  plugins: [
    new BabiliPlugin()
  ]
};

Build as a library so it can be imported
Build as a library so it can be imported
