diff options
author | Valentin Popov <info@valentineus.link> | 2017-09-28 16:09:43 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2017-09-28 16:09:43 +0300 |
commit | 5e4bfac39a53498f457d02ff5aac3653a6c822df (patch) | |
tree | 6b4cd9249a6c247ff1e4f5e5fef86a901b87e0d5 /webpack.config.js | |
parent | a40cbab6100d4c227c89155333f4700e7b6674f1 (diff) | |
download | iii-client-5e4bfac39a53498f457d02ff5aac3653a6c822df.tar.xz iii-client-5e4bfac39a53498f457d02ff5aac3653a6c822df.zip |
Added assembly for the browser
Diffstat (limited to 'webpack.config.js')
-rw-r--r-- | webpack.config.js | 25 |
1 files changed, 25 insertions, 0 deletions
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 |