'use strict';

const path = require('path');
const webpack = require('webpack');

const rootDir = path.resolve(__dirname);

module.exports = {
  entry: {
    example: [ path.resolve(rootDir, 'example', 'example') ],
    // vendor: [ path.resolve(rootDir, 'example', 'vendor') ]
  },
  output: {
    filename: '[name].bundle.js',
    path: path.resolve(rootDir, 'example')
  },
  devtool: 'inline-source-map',
  module: {
    loaders: [
      { loader: 'raw', test: /\.(css|html)$/ },
      { exclude: /node_modules/, loader: 'ts-loader', test: /\.ts$/ }
    ]
  },
  resolve: {
    extensions: ['', '.js', '.ts'],
    modulesDirectories: ['node_modules'],
    // root: path.resolve('.', '')
  },
};

@@ -12,117 +12,8 @@
 ';%0A%0A
-const path = require('path');%0Aconst webpack = require('webpack');%0A%0Aconst rootDir = path.resolve(__dirname);%0A%0A
 modu
@@ -55,118 +55,30 @@
 le: 
-%5B path.resolve(rootDir, '
+'./
 example
-', '
+/
 example
-') %5D,%0A    // vendor: %5B path.resolve(rootDir, 'example', 'vendor') %5D
+.ts'
 %0A  %7D
@@ -139,39 +139,19 @@
 th: 
-path.resolve(rootDir, '
+'./
 example'
 )%0A  
@@ -146,17 +146,16 @@
 example'
-)
 %0A  %7D,%0A  
@@ -433,44 +433,8 @@
 es'%5D
-,%0A    // root: path.resolve('.', '')
 %0A  %7D

simplify webpack config