Skip to content

Commit

Permalink
Added Webpack configuration to use the Babel loader for JSX files.
Browse files Browse the repository at this point in the history
  • Loading branch information
maratbn committed Jan 18, 2017
1 parent bba196d commit 9488a5c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions webpack.config.js
Expand Up @@ -7,6 +7,12 @@ const path = require('path');

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

0 comments on commit 9488a5c

Please sign in to comment.