summaryrefslogtreecommitdiff
path: root/webpack.config.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2017-04-21 12:30:57 -0400
committerJules Laplace <jules@okfoc.us>2017-04-21 12:30:57 -0400
commit5028ad81845308f3b1954dcc1fde664077fa0fa9 (patch)
tree2e999beb6df2b3d8c4ccf70aa5a460c2374adb4b /webpack.config.js
parent4c8c80162a60231b0254abcce8a336447c3a3416 (diff)
scaffolding
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js22
1 files changed, 22 insertions, 0 deletions
diff --git a/webpack.config.js b/webpack.config.js
new file mode 100644
index 0000000..8049884
--- /dev/null
+++ b/webpack.config.js
@@ -0,0 +1,22 @@
+module.exports = {
+ entry: './client/index.jsx',
+ watch: true,
+ devtool: 'cheap-source-map',
+ output: {
+ filename: './public/bundle.js'
+ },
+ module: {
+ rules: [
+ {
+ test: /\.jsx?$/,
+ exclude: /(node_modules|bower_components)/,
+ use: {
+ loader: 'babel-loader',
+ options: {
+ presets: ['env','react']
+ }
+ }
+ }
+ ]
+ },
+}