diff options
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 |