From f7c4284ffc361d3a3555d37592bbf97079bd4ed0 Mon Sep 17 00:00:00 2001 From: Isaac Date: Mon, 26 Jun 2017 16:13:37 -0600 Subject: [PATCH] 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. --- docs/jsx.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/jsx.md b/docs/jsx.md index b10d86eb..0b8cd7f9 100644 --- a/docs/jsx.md +++ b/docs/jsx.md @@ -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: {