/**
 * Base webpack config used across other specific configs
 */

const path = require('path');
const validate = require('webpack-validator');
const webpack = require('webpack');

module.exports = validate({
  module: {
    loaders: [{
      test: /\.jsx?$/,
      loaders: ['babel-loader'],
      exclude: /node_modules/
    }, {
      test: /\.json$/,
      loader: 'json-loader'
    }, {
      test: /\.(?:png|jpg|svg|otf|ttf)$/,
      loader: 'url-loader'
    }]
  },

  output: {
    path: path.join(__dirname, '../dist'),
    filename: 'bundle.js',

    // https://github.com/webpack/webpack/issues/1114
    libraryTarget: 'commonjs2'
  },

  // https://webpack.github.io/docs/configuration.html#resolve
  resolve: {
    extensions: ['', '.js', '.jsx', '.json'],
    packageMains: ['webpack', 'browser', 'web', 'browserify', ['jam', 'main'], 'main']
  },

  plugins: [
    new webpack.DefinePlugin({
      'process.env': {
        CARDANO_API: process.env.CARDANO_API || 0,
        FAKE_RESPONSE_TIME: process.env.FAKE_RESPONSE_TIME || 1000,
        AUTO_LOGIN: process.env.AUTO_LOGIN || 0,
        MOBX_DEV_TOOLS: process.env.MOBX_DEV_TOOLS || 0,
      }
    }),
  ],

  externals: [
    // put your node 3rd party libraries which can't be built with webpack here
    // (mysql, mongodb, and so on..)
  ]
});

@@ -967,25 +967,25 @@
 DANO_API %7C%7C 
-0
+1
 ,%0A        FA

Make running with cardano api the default