var path = require('path');
var webpackSettings = require('../../webpack-helper');

module.exports = webpackSettings({
  entry: './js/app',
  output: {
    filename: './js/app.min.js',
    path: path.resolve('./js')
  },
  resolve: {
    alias: {
      // Tungsten.js doesn't need jQuery, but backbone needs a subset of jQuery APIs.  Backbone.native
      // implements tha minimum subset of required functionality
      'jquery': 'backbone.native',
      //  Aliases for the current version of tungstenjs above the ./examples directory.  If
      //  examples dir is run outside of main tungstenjs repo, remove these aliases
      //  and use via normal modules directories (e.g., via NPM)
      'tungstenjs/adaptors/backbone': path.join(__dirname, '../../adaptors/backbone'),
      'tungstenjs/src/template/template': path.join(__dirname, '../../src/template/template'),
      'tungstenjs': '../../src'
    }
  },
  resolveLoader: {
    root: path.join(__dirname, 'node_modules'),
    modulesDirectories: ['node_modules', path.join(__dirname, '../../node_modules/')]
  },
  devtool: '#source-map',
  loaders: [{test: /\.js$/, loader: 'babel?stage=0', exclude: /node_modules/}]
});



var path = require('path');
var webpackSettings = require('../../webpack-helper');

module.exports = webpackSettings({
  entry: './js/app',
  output: {
    filename: './js/app.min.js',
    path: path.resolve('./js')
  },
  resolve: {
    alias: {
      // Tungsten.js doesn't need jQuery, but backbone needs a subset of jQuery APIs.  Backbone.native
      // implements tha minimum subset of required functionality
      'jquery': 'backbone.native',
      //  Aliases for the current version of tungstenjs above the ./examples directory.  If
      //  examples dir is run outside of main tungstenjs repo, remove these aliases
      //  and use via normal modules directories (e.g., via NPM)
      'tungstenjs/adaptors/backbone': path.join(__dirname, '../../adaptors/backbone'),
      'tungstenjs/src/template/template': path.join(__dirname, '../../src/template/template'),
      'tungstenjs': '../../src'
    }
  },
  resolveLoader: {
    root: path.join(__dirname, 'node_modules'),
    modulesDirectories: ['node_modules', path.join(__dirname, '../../node_modules/')]
  },
  devtool: '#source-map',
  module: {
    loaders: [{test: /\.js$/, loader: 'babel?stage=0', exclude: /node_modules/}]
  }
});



Fix for webpack es6 example loader
Fix for webpack es6 example loader
