From 2751adeee946695a45696978b18e53aa83d2314f Mon Sep 17 00:00:00 2001 From: Yogeswaran Date: Wed, 7 Jun 2017 13:52:54 +0530 Subject: [PATCH] README.md updated path property in output (#697) In 2.6.1, output: { path: 'dist', filename: 'app.bundle.js' } give the below error. The provided value "dist" is not an absolute path! So made, path: output: { path: __dirname + '/dist', filename: 'index_bundle.js' } --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 78a9c2b..81913ad 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ var HtmlWebpackPlugin = require('html-webpack-plugin'); var webpackConfig = { entry: 'index.js', output: { - path: 'dist', + path: __dirname + '/dist', filename: 'index_bundle.js' }, plugins: [new HtmlWebpackPlugin()] @@ -104,7 +104,7 @@ Here's an example webpack config illustrating how to use these options: { entry: 'index.js', output: { - path: 'dist', + path: __dirname + '/dist', filename: 'index_bundle.js' }, plugins: [ @@ -131,7 +131,7 @@ once in your plugins array: { entry: 'index.js', output: { - path: 'dist', + path: __dirname + '/dist', filename: 'index_bundle.js' }, plugins: [