From 6a65ebc9afc41e6381691508aeab2db1366d223f Mon Sep 17 00:00:00 2001 From: Isaac Date: Mon, 26 Jun 2017 16:11:57 -0600 Subject: [PATCH] Use manual path resolution in webpack.config.js 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/es6.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/es6.md b/docs/es6.md index 7a453c5d..0192a6ca 100644 --- a/docs/es6.md +++ b/docs/es6.md @@ -70,10 +70,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: {