aboutsummaryrefslogtreecommitdiff
path: root/webpack.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js7
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'],
+ }
};