summaryrefslogtreecommitdiff
path: root/webpack.config.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-02-21 04:10:28 +0100
committerJules Laplace <julescarbon@gmail.com>2018-02-21 04:10:28 +0100
commit9f68262f9eb4720b4d6466e1cf5cf9c0edb9c286 (patch)
tree30dab1f29749031680d19c70a6b4a88a553fa9ba /webpack.config.js
smash
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js24
1 files changed, 24 insertions, 0 deletions
diff --git a/webpack.config.js b/webpack.config.js
new file mode 100644
index 0000000..3b2bf92
--- /dev/null
+++ b/webpack.config.js
@@ -0,0 +1,24 @@
+var webpack = require('webpack');
+
+module.exports = {
+ entry: './client/index.js',
+ watch: true,
+ devtool: 'cheap-source-map',
+ output: {
+ filename: './bundle.js'
+ },
+ module: {
+ rules: [
+ {
+ test: /\.jsx?$/,
+ exclude: /(node_modules|bower_components)/,
+ use: {
+ loader: 'babel-loader',
+ options: {
+ presets: ['env']
+ }
+ }
+ }
+ ]
+ },
+}