Skip to content

Commit

Permalink
Added Webpack configuration to use 'babel-loader' for JSX files.
Browse files Browse the repository at this point in the history
  • Loading branch information
maratbn committed Aug 5, 2018
1 parent c7f575c commit 85bd9ba
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions webpack.config.js
Expand Up @@ -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'
Expand Down

0 comments on commit 85bd9ba

Please sign in to comment.