Update webpack.config.js (in JSX docs)

Webpack doesn't support relative paths in the output.path config parameter, so this updated code uses the 'path' module to resolve the relative path.
This commit is contained in:
Isaac 2017-06-26 16:13:37 -06:00 committed by GitHub
parent 6a65ebc9af
commit f7c4284ffc

View file

@ -112,10 +112,12 @@ Create a `.babelrc` file:
Next, create a file called `webpack.config.js`
```javascript
const path = require('path')
module.exports = {
entry: './src/index.js',
output: {
path: './bin',
path: path.resolve(__dirname, './bin'),
filename: 'app.js',
},
module: {