From fe4b1bf362a563c7112ab8bc584e2a3c9284efc3 Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Fri, 11 Aug 2017 23:15:47 +0900 Subject: add webpack.config --- webpack.config.js | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 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..4b3ed7a --- /dev/null +++ b/webpack.config.js @@ -0,0 +1,32 @@ +var path = require('path'); + +const src = path.resolve(__dirname, 'src'); +const dist = path.resolve(__dirname, 'build'); + +module.exports = { + entry: { + index: path.join(src, 'index.js') + }, + + output: { + path: dist, + filename: '[name].js' + }, + + module: { + loaders: [ + { + test: /\.js$/, + exclude: /node_modules/, + loader: 'babel-loader', + query: { + presets: [ 'es2015' ] + } + } + ] + }, + + resolve: { + extensions: [ '.js' ] + } +}; -- cgit v1.2.3