diff options
author | Noah Loomans <noahloomans@gmail.com> | 2017-12-10 11:10:05 +0100 |
---|---|---|
committer | Noah Loomans <noahloomans@gmail.com> | 2017-12-10 11:10:05 +0100 |
commit | 7bd3b6766536e33146bb55506c79619a1ab7d3b3 (patch) | |
tree | e5e53fa944d2c86143d1924b82de504c9dc76224 /webpack.config.js | |
parent | b7fab958633456346d67c9cdd68eef05572882ab (diff) |
Move reducers and actions into seperate folders
Diffstat (limited to 'webpack.config.js')
-rw-r--r-- | webpack.config.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/webpack.config.js b/webpack.config.js index baba614..482f8db 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -1,7 +1,7 @@ const path = require('path'); module.exports = { - entry: './src/client/react/index.js', + entry: './src/client/react/index.jsx', output: { path: path.resolve(__dirname, 'src/client/static'), filename: 'bundle.js', @@ -9,11 +9,14 @@ module.exports = { module: { rules: [ { - test: [/\.js$/], + test: [/\.js$/, /\.jsx$/], exclude: [/node_modules/], loader: 'babel-loader', options: { presets: ['es2015', 'react', 'stage-2'] }, }, ], }, + resolve: { + extensions: ['.js', '.jsx'], + } }; |