From 5e4bfac39a53498f457d02ff5aac3653a6c822df Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 28 Sep 2017 17:09:43 +0400 Subject: Added assembly for the browser --- webpack.config.js | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 webpack.config.js (limited to 'webpack.config.js') diff --git a/webpack.config.js b/webpack.config.js new file mode 100644 index 0000000..ec23cbd --- /dev/null +++ b/webpack.config.js @@ -0,0 +1,25 @@ +'use strict'; +var webpack = require('webpack'); +var path = require('path'); + +module.exports = { + entry: path.resolve(__dirname, 'src/index.js'), + + output: { + filename: 'bundle.js', + path: path.resolve(__dirname, 'dist') + }, + + module: { + rules: [{ + test: /\.js$/, + exclude: /(node_modules|bower_components)/, + use: { + loader: 'babel-loader', + options: { + presets: ['es2015'] + } + } + }] + } +}; \ No newline at end of file -- cgit v1.2.3