summaryrefslogtreecommitdiff
path: root/webpack.config.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2017-03-17 22:15:38 +0100
committerJules Laplace <jules@okfoc.us>2017-03-17 22:15:38 +0100
commit09ffebf333adfe45967b44eb8f6237a65a876e25 (patch)
treeb83d6cc1461fe2f74f2ca9b637ab36abeada51f6 /webpack.config.js
parent4e9e8b7692f906e5e389ebfbf5cb1873bed38a00 (diff)
getting set up with babel and webpack
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/webpack.config.js b/webpack.config.js
new file mode 100644
index 0000000..4d5d4d1
--- /dev/null
+++ b/webpack.config.js
@@ -0,0 +1,13 @@
+module.exports = {
+ entry: './client/index.js',
+ watch: true,
+ output: {
+ filename: './public/bundle.js'
+ },
+ module: {
+ loaders: [
+ { test: /\.js$/, loader: 'babel-loader', exclude: /node_modules/ },
+ { test: /\.jsx$/, loader: 'babel-loader', exclude: /node_modules/ }
+ ]
+ }
+}