Permalink
Browse files

Added Webpack configuration to use 'babel-loader' for JSX files.

  • Loading branch information...
maratbn committed Jun 26, 2018
1 parent c7f575c commit 85bd9bad3bd5f26ea4bb0cf8531c3ff3df080bbe
Showing with 8 additions and 0 deletions.
  1. +8 −0 webpack.config.js
@@ -7,6 +7,14 @@ const path = require('path');

module.exports = {
entry: [path.join(__dirname, 'webpack_in', 'entry.js')],
module: {
rules: [{
test: /\.jsx$/,
use: [{
loader: 'babel-loader'
}]
}]
},
output: {
path: path.join(__dirname, 'webpack_out'),
filename: 'minimalistic_react.js'

0 comments on commit 85bd9ba

Please sign in to comment.