From 5028ad81845308f3b1954dcc1fde664077fa0fa9 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Fri, 21 Apr 2017 12:30:57 -0400 Subject: scaffolding --- webpack.config.js | 22 ++++++++++++++++++++++ 1 file changed, 22 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..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'] + } + } + } + ] + }, +} -- cgit v1.2.3-70-g09d2