repo_description: Mobile, desktop and website Apps with the same code
repo_topics: android-app architecture desktop electron flux ios-app react react-native universal-app
code: /*
   * Webpack distribution configuration
   *
   * This file is set up for serving the distribution version. It will be compiled to dist/ by default
   */
  
  'use strict';
  
  var webpack = require('webpack');
  
  module.exports = {
    output: {
      publicPath: '/assets/',
      path: 'dist/assets/',
      filename: 'main.js'
    },
    debug: false,
    devtool: false,
    entry: './src/index.js',
    stats: {
      colors: true,
      reasons: false
    },
    plugins: [
      new webpack.optimize.DedupePlugin(),
      new webpack.optimize.UglifyJsPlugin(),
      new webpack.optimize.OccurenceOrderPlugin(),
      new webpack.optimize.AggressiveMergingPlugin()
    ],
    module: {
      loaders: [{
        test: /\.js$/,
        exclude: /node_modules/,
        loader: 'babel-loader'
      }, {
        test: /\.css$/,
        loader: 'style-loader!css-loader'
      }, {
        test: /\.sass/,
        loader: 'style-loader!css-loader!sass-loader?outputStyle=expanded&indentedSyntax'
      }, {
        test: /\.(png|jpg)$/,
        loader: 'url-loader?limit=8192'
      }]
    }
  };
  