diff options
Diffstat (limited to 'webpack.config.js')
| -rw-r--r-- | webpack.config.js | 22 |
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'] + } + } + } + ] + }, +} |
