diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-02-21 04:10:28 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-02-21 04:10:28 +0100 |
| commit | 9f68262f9eb4720b4d6466e1cf5cf9c0edb9c286 (patch) | |
| tree | 30dab1f29749031680d19c70a6b4a88a553fa9ba /webpack.config.js | |
smash
Diffstat (limited to 'webpack.config.js')
| -rw-r--r-- | webpack.config.js | 24 |
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'] + } + } + } + ] + }, +} |
