aboutsummaryrefslogtreecommitdiff
path: root/webpack.config.js
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2017-08-11 23:24:50 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2017-08-11 23:24:50 +0900
commitb501db2a46f6ef639d4f2e176f320514770dd7a5 (patch)
tree40c43ec8b69e329d755b835e6f52a2e6512bf8d1 /webpack.config.js
parentf39c14c127fc0746fc728b36d3774bf64055c61f (diff)
parent816c3488439c6264eac73bbbea359eaf60bfb1c8 (diff)
Merge branch 'init-project'
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js32
1 files changed, 32 insertions, 0 deletions
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' ]
+ }
+};