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

module.exports = {
	entry: './src/jtml.js',
	devtool: 'source-map',
	output: {
		path: './lib',
		filename: 'jtml.js',
		library: 'jtml',
		libraryTarget: 'umd',
		umdNamedDefine: true
	},
	module: {
		loaders: [
			{
				loader: 'babel',
				test: /\.js$/,
				exclude: /node_modules/,
				query: {
					presets: ['es2015'],
					plugins: ['babel-plugin-add-module-exports']
				}
			}
		]
	},
	plugins: [
		// new webpack.optimize.UglifyJsPlugin({
		// 	compress: {
		// 		warnings: false,
		// 	},
		// 	output: {
		// 		comments: false,
		// 	},
		// }),
	]
};

@@ -465,19 +465,16 @@
 ns: %5B%0A%09%09
-// 
 new webp
@@ -505,19 +505,16 @@
 gin(%7B%0A%09%09
-// 
 %09compres
@@ -520,19 +520,16 @@
 ss: %7B%0A%09%09
-// 
 %09%09warnin
@@ -541,28 +541,22 @@
 alse,%0A%09%09
-// 
 %09%7D,%0A%09%09
-// 
 %09output:
@@ -560,19 +560,16 @@
 ut: %7B%0A%09%09
-// 
 %09%09commen
@@ -585,20 +585,14 @@
 ,%0A%09%09
-// 
 %09%7D,%0A%09%09
-// 
 %7D),%0A

Use webpack to minify built files